2024-06-14 12:07:20 +00:00
|
|
|
import { Layout, LayoutContent, LayoutHeader } from "@/components";
|
|
|
|
|
import { PropsWithChildren } from "react";
|
2024-08-25 20:20:38 +00:00
|
|
|
import { Trans } from "react-i18next";
|
2024-08-09 18:12:47 +00:00
|
|
|
import { SettingsProvider } from "./SettingsContext";
|
2024-06-14 12:07:20 +00:00
|
|
|
|
|
|
|
|
export const SettingsLayout = ({ children }: PropsWithChildren) => {
|
|
|
|
|
return (
|
2024-08-09 18:12:47 +00:00
|
|
|
<SettingsProvider>
|
|
|
|
|
<Layout>
|
|
|
|
|
<LayoutHeader />
|
2024-08-25 20:20:38 +00:00
|
|
|
<LayoutContent>
|
|
|
|
|
<div className='grid w-full max-w-6xl gap-2 mx-auto'>
|
|
|
|
|
<h1 className='text-2xl font-semibold md:text-3xl'>
|
|
|
|
|
<Trans i18nKey='settings.edit.title' />
|
|
|
|
|
</h1>
|
|
|
|
|
</div>
|
|
|
|
|
{children}
|
|
|
|
|
</LayoutContent>
|
2024-08-09 18:12:47 +00:00
|
|
|
</Layout>
|
|
|
|
|
</SettingsProvider>
|
2024-06-14 12:07:20 +00:00
|
|
|
);
|
|
|
|
|
};
|