1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-11-15 16:43:12 +01:00
.profile/apps/website/app/[locale]/curriculum-vitae/layout.tsx

23 lines
640 B
TypeScript
Raw Normal View History

2024-07-31 19:23:14 +02:00
import "@repo/config-tailwind/styles.css"
import type { LocaleProps } from "@repo/i18n/routing"
2024-07-31 19:23:14 +02:00
import { ThemeProvider } from "@repo/ui/Layout/Header/SwitchTheme"
import { setRequestLocale } from "next-intl/server"
2024-07-31 19:23:14 +02:00
interface CurriculumVitaeLayoutProps
extends React.PropsWithChildren,
LocaleProps {}
const CurriculumVitaeLayout: React.FC<CurriculumVitaeLayoutProps> = async (
props,
) => {
const { children, params } = props
const { locale } = await params
2024-07-31 19:23:14 +02:00
// Enable static rendering
setRequestLocale(locale)
2024-07-31 19:23:14 +02:00
return <ThemeProvider forcedTheme="light">{children}</ThemeProvider>
}
export default CurriculumVitaeLayout