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