2024-06-11 16:48:09 +00:00
|
|
|
import { Layout, LayoutContent, LayoutHeader } from "@/components";
|
|
|
|
|
import { PropsWithChildren } from "react";
|
2024-06-13 11:09:26 +00:00
|
|
|
import { Trans } from "react-i18next";
|
2024-06-11 16:48:09 +00:00
|
|
|
import { CatalogProvider } from "./CatalogContext";
|
|
|
|
|
|
|
|
|
|
export const CatalogLayout = ({ children }: PropsWithChildren) => {
|
|
|
|
|
return (
|
|
|
|
|
<CatalogProvider>
|
|
|
|
|
<Layout>
|
|
|
|
|
<LayoutHeader />
|
|
|
|
|
<LayoutContent>
|
2024-06-13 11:09:26 +00:00
|
|
|
<div className='flex items-center'>
|
|
|
|
|
<h1 className='text-lg font-semibold md:text-2xl'>
|
|
|
|
|
<Trans i18nKey='catalog.title' />
|
|
|
|
|
</h1>
|
|
|
|
|
</div>
|
|
|
|
|
{children}
|
2024-06-11 16:48:09 +00:00
|
|
|
</LayoutContent>
|
|
|
|
|
</Layout>
|
|
|
|
|
</CatalogProvider>
|
|
|
|
|
);
|
|
|
|
|
};
|