import { resolveToRoot } from "../path" import Darkmode from "./Darkmode" import style from './styles/header.scss' export interface HeaderProps { title: string slug: string } export default function Header({ title, slug }: HeaderProps) { const baseDir = resolveToRoot(slug) return

{title}

} Header.beforeDOMLoaded = Darkmode.beforeDOMLoaded Header.css = style + Darkmode.css