@@ -36,13 +36,16 @@ export const kind = (
|
||||
export function Layout({
|
||||
title,
|
||||
children,
|
||||
mainLandmark = true,
|
||||
}: {
|
||||
title: string;
|
||||
children: ReactNode;
|
||||
mainLandmark?: boolean;
|
||||
}) {
|
||||
const { flash } = usePage<{ flash?: { success?: string } }>().props;
|
||||
const Container = mainLandmark ? 'main' : 'div';
|
||||
return (
|
||||
<main className="mx-auto w-full max-w-6xl min-w-0 space-y-6 p-4 break-words md:p-8">
|
||||
<Container className="mx-auto w-full max-w-6xl min-w-0 space-y-6 p-4 break-words md:p-8">
|
||||
<Head title={title} />
|
||||
<nav
|
||||
className="flex flex-wrap gap-5 text-sm underline"
|
||||
@@ -61,6 +64,6 @@ export function Layout({
|
||||
</p>
|
||||
)}
|
||||
{children}
|
||||
</main>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user