mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-15 16:43:12 +01:00
22 lines
630 B
TypeScript
22 lines
630 B
TypeScript
import "@repo/config-tailwind/styles.css"
|
|
import type { LocaleProps } from "@repo/i18n/config"
|
|
import { ThemeProvider } from "@repo/ui/Layout/Header/SwitchTheme"
|
|
import { unstable_setRequestLocale } from "next-intl/server"
|
|
|
|
interface CurriculumVitaeLayoutProps
|
|
extends React.PropsWithChildren,
|
|
LocaleProps {}
|
|
|
|
const CurriculumVitaeLayout: React.FC<CurriculumVitaeLayoutProps> = async (
|
|
props,
|
|
) => {
|
|
const { children, params } = props
|
|
|
|
// Enable static rendering
|
|
unstable_setRequestLocale(params.locale)
|
|
|
|
return <ThemeProvider forcedTheme="light">{children}</ThemeProvider>
|
|
}
|
|
|
|
export default CurriculumVitaeLayout
|