+2
-2
components/withLayout.tsx
+2
-2
components/withLayout.tsx
···
21
21
download: DownloadLayout,
22
22
} satisfies Record<Layouts, FC>;
23
23
24
-
type WithLayouProps<L = Layouts> = PropsWithChildren<{ layout: L }>;
24
+
type WithLayoutProps<L = Layouts> = PropsWithChildren<{ layout: L }>;
25
25
26
-
const WithLayout: FC<WithLayouProps<Layouts>> = ({ layout, children }) => {
26
+
const WithLayout: FC<WithLayoutProps<Layouts>> = ({ layout, children }) => {
27
27
const LayoutComponent = layouts[layout] ?? DefaultLayout;
28
28
29
29
return <LayoutComponent>{children}</LayoutComponent>;