import PaperListButtonWrapper from "@/components/PaperListButtonWrapper"; import AuthButton from "@/components/AuthButton"; import { createClient } from "@/utils/supabase/server"; import ConnectSupabaseSteps from "@/components/ConnectSupabaseSteps"; import SignUpUserSteps from "@/components/SignUpUserSteps"; import Header from "@/components/Header"; import { cookies } from "next/headers"; import QuillWrapper from "./QuillWrapper"; // import TinyEditor from "../components/TinyEditor"; // import SEditor from "../components/SlateEditor"; import SettingsLink from "@/components/SettingsLink"; import PaperManagementWrapper from "@/components/PaperManagementWrapper"; // import Error from "@/app/global-error"; export default function Index() { const cookieStore = cookies(); const canInitSupabaseClient = () => { // This function is just for the interactive tutorial. // Feel free to remove it once you have Supabase connected. try { createClient(cookieStore); return true; } catch (e) { return false; } }; const isSupabaseConnected = canInitSupabaseClient(); return (