import { ReactNode, useState, useEffect } from "react"; import Header from "./header"; import Content from "./content"; import Footer from "./footer"; type Props = { children?: ReactNode; }; const Layout = ({ children }: Props) => { const [mounted, setMounted] = useState(false); useEffect(() => { setMounted(true); }, []); if (!mounted) return null; return (