import siteMetadata from '@/data/siteMetadata' import headerNavLinks from '@/data/headerNavLinks' import Logo from '@/data/logo.svg' import Link from './Link' import MobileNav from './MobileNav' import ThemeSwitch from './ThemeSwitch' import SearchButton from './SearchButton' const Header = () => { return (
{typeof siteMetadata.headerTitle === 'string' ? (
{siteMetadata.headerTitle}
) : ( siteMetadata.headerTitle )}
{headerNavLinks .filter((link) => link.href !== '/') .map((link) => ( {link.title} ))}
) } export default Header