Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import type { Metadata } from 'next' import { createToolMetadata } from '@/lib/create-tools/createToolMetadata' /** * Metadata-only layout: the page is a client component, and a `'use client'` * module's `metadata` export is silently ignored, so the route would otherwise * inherit the site-wide default title. Must NOT become a client component. * * A layout rather than a server/client page split because `page.tsx` also * exports `FlashcardFormState`, which `@/components/FlashcardPreview` imports — * splitting the file would break that. */ export const metadata: Metadata = createToolMetadata('flashcards') export default function Layout({ children }: { children: React.ReactNode }) { return children } |