import { redirect } from "next/navigation"; import { ApiKeyGate } from "@/components/ApiKeyGate"; import { AppHeader } from "@/components/AppHeader"; import { HomeworkScreen } from "@/components/homework/HomeworkScreen"; import { MobileSidebar, Sidebar, SidebarOffset } from "@/components/Sidebar"; import { TabBar } from "@/components/TabBar"; export const metadata = { title: "Make my homework", }; export default async function HomeworkPage({ searchParams, }: { searchParams: Promise<{ [key: string]: string | string[] | undefined }>; }) { const { mode, open } = await searchParams; // The mode switch and the library quick actions deep-link into a mode; a // link that points at the Study Deck side is handed back to /create. if (mode === "deck") redirect("/create?mode=deck"); return (
); }