inline scripts

This commit is contained in:
Jacky Zhao committed 2023-06-03 15:07:19 -04:00
1 parent fcd81353f8
commit 4bdc17d4a1
19 files changed
+187 -69

No files matched your search

+2 -2
View File
@@ -5,10 +5,10 @@ export interface HeaderProps {
slug: string
}
export default function({ title, slug }: HeaderProps) {
export function Component({ title, slug }: HeaderProps) {
const baseDir = resolveToRoot(slug)
return <header>
<h1><a href={baseDir}>{title}</a></h1>
</header>
}