Factoring out the re-used layout

This commit is contained in:
Keith Stevens
2023-01-03 08:40:59 +09:00
parent 53ab8fb479
commit 7f1644e38d
4 changed files with 14 additions and 21 deletions
+8
View File
@@ -17,4 +17,12 @@ export const getDefaultLayout = (page: React.ReactElement) => (
</div>
);
export const getTransparentHeaderLayout = (page: React.ReactElement) => (
<div className="grid grid-rows-[min-content_1fr_min-content] h-full justify-items-stretch">
<Header transparent={true} />
{page}
<Footer />
</div>
);
export const noLayout = (page: React.ReactElement) => page;