From 317cce9314ad78d90714dc55aa82a2c3dfa75d1a Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 08 Jun 2023 05:27:32 +0000
Subject: [PATCH] generic quartz component for layout

---
 quartz/components/Header.tsx |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/quartz/components/Header.tsx b/quartz/components/Header.tsx
index 7da4a8e..8eb2d70 100644
--- a/quartz/components/Header.tsx
+++ b/quartz/components/Header.tsx
@@ -1,14 +1,10 @@
-import { resolveToRoot } from "../path"
+import style from './styles/header.scss'
+import { QuartzComponentProps } from "./types"
 
-export interface HeaderProps {
-  title: string
-  slug: string
-}
-
-export default function({ title, slug }: HeaderProps) {
-  const baseDir = resolveToRoot(slug)
+export default function Header({ children }: QuartzComponentProps) {
   return <header>
-    <h1><a href={baseDir}>{title}</a></h1>
+    {children}
   </header>
-
 }
+
+Header.css = style

--
Gitblit v1.10.0