supMDX/components/NavHeader.tsx
2022-11-04 22:05:14 +09:00

12 lines
394 B
TypeScript

import Link from 'next/link';
import config from '#config';
export default function NavHeader({onToggleFold}: {onToggleFold?: ()=>void}) {
const {site: {name: siteName = 'supMDX'} = {}} = config;
return <header>
<Link href="/" id="icon-link">
<div style={{fontSize: '1.5em'}}>{siteName}</div>
</Link>
<div className="menu-toggle" onClick={onToggleFold} />
</header>;
}