import DeployButton from "../components/DeployButton"; 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 QEditor from "@/components/QuillEditor"; import QuillWrapper from "./QuillWrapper"; // import TinyEditor from "../components/TinyEditor"; // import SEditor from "../components/SlateEditor"; import SettingsLink from "@/components/SettingsLink"; import { ErrorBoundary } from "next/dist/client/components/error-boundary"; // import Error from "@/app/global-error"; export default async 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 (