import siteMetadata from '@/data/siteMetadata'; import headerNavLinks from '@/data/headerNavLinks'; import Logo from '@/data/logo.svg'; import Link from './Link'; import SectionContainer from './SectionContainer'; import Footer from './Footer'; import MobileNav from './MobileNav'; import ThemeSwitch from './ThemeSwitch'; import { ReactNode } from 'react'; interface Props { children: ReactNode; } const LayoutWrapper = ({ children }: Props) => { return (
{typeof siteMetadata.headerTitle === 'string' ? (
{siteMetadata.headerTitle}
) : ( siteMetadata.headerTitle )}
{headerNavLinks.map((link) => ( {link.title} ))}
{children}
); }; export default LayoutWrapper;