import Head from "next/head"; import { useTheme } from "next-themes"; import Header from "./page-header/Header"; import Footer from "./page-footer/Footer"; import { themeColors } from "../lib/config"; import type { ReactNode } from "react"; import styles from "./Layout.module.css"; type Props = { children: ReactNode; }; const Layout = ({ children }: Props) => { const { resolvedTheme } = useTheme(); return ( <> {resolvedTheme && ( )}
{children}