28 lines
635 B
TypeScript
28 lines
635 B
TypeScript
import type { Metadata } from "next";
|
|
import { cookies } from "next/headers";
|
|
|
|
import { Providers } from "@/app/providers";
|
|
|
|
import "@/app/styles/globals.css";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "디지털 행정지원 시스템",
|
|
description: "디지털 행정지원 시스템",
|
|
};
|
|
|
|
interface RootLayoutProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export default async function RootLayout({ children }: RootLayoutProps) {
|
|
const theme = (await cookies()).get("site-theme-key");
|
|
|
|
return (
|
|
<html lang="ko" data-theme={theme?.value}>
|
|
<body>
|
|
<Providers>{children}</Providers>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|