keroosha.cybergulag.today/quartz/components/Header.tsx
2023-06-03 15:07:19 -04:00

15 lines
278 B
TypeScript

import { resolveToRoot } from "../path"
export interface HeaderProps {
title: string
slug: string
}
export function Component({ title, slug }: HeaderProps) {
const baseDir = resolveToRoot(slug)
return <header>
<h1><a href={baseDir}>{title}</a></h1>
</header>
}