keroosha.cybergulag.today/quartz/components/Header.tsx

15 lines
276 B
TypeScript
Raw Normal View History

2023-06-02 02:05:14 +03:00
import { resolveToRoot } from "../path"
export interface HeaderProps {
title: string
slug: string
}
export default function({ title, slug }: HeaderProps) {
const baseDir = resolveToRoot(slug)
return <header>
<h1><a href={baseDir}>{title}</a></h1>
</header>
}