1
0
mirror of https://gitlab.com/MisterBiggs/brain-quartz.git synced 2025-06-16 09:46:39 +00:00
2023-06-01 19:05:14 -04:00

15 lines
276 B
TypeScript

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>
}