2022-11-04 21:44:29 +09:00
|
|
|
import Link from 'next/link';
|
2022-11-04 22:05:14 +09:00
|
|
|
import config from '#config';
|
2022-11-04 21:44:29 +09:00
|
|
|
|
|
|
|
export default function NavHeader({onToggleFold}: {onToggleFold?: ()=>void}) {
|
2022-11-04 22:05:14 +09:00
|
|
|
const {site: {name: siteName = 'supMDX'} = {}} = config;
|
2022-11-04 21:44:29 +09:00
|
|
|
return <header>
|
|
|
|
<Link href="/" id="icon-link">
|
2022-11-04 22:05:14 +09:00
|
|
|
<div style={{fontSize: '1.5em'}}>{siteName}</div>
|
2022-11-04 21:44:29 +09:00
|
|
|
</Link>
|
|
|
|
<div className="menu-toggle" onClick={onToggleFold} />
|
|
|
|
</header>;
|
|
|
|
}
|