import { getI18n } from "@/lib/i18n"; import { Header, Footer } from "@/components/Shell"; import { DraftEditor } from "@/components/DraftEditor"; import { user } from "@/lib/supabase"; import { accountProfile } from "@/lib/profile"; import { redirect } from "next/navigation"; export default async function Draft({ params, }: { params: Promise<{ id: string }>; }) { const { t } = await getI18n(); const { id } = await params; const account = await user(); if (!account) redirect(`/log-in?next=${encodeURIComponent("/dashboard/" + id)}`); const profile = await accountProfile(account); return ( <>
{t("YOUR WORLD ยท YOUR LOCATIONS")}

{t("Map workshop")}