From b8c011410d6bcd6837f4efd6a3948196a0f7aeea Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sat, 10 Jun 2023 06:06:02 +0000
Subject: [PATCH] toc
---
quartz/components/Body.tsx | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/quartz/components/Body.tsx b/quartz/components/Body.tsx
index 1d9296b..b8ad34b 100644
--- a/quartz/components/Body.tsx
+++ b/quartz/components/Body.tsx
@@ -1,15 +1,9 @@
-import { ComponentChildren } from "preact"
import clipboardScript from './scripts/clipboard.inline'
import clipboardStyle from './styles/clipboard.scss'
+import { QuartzComponentProps } from "./types"
-export interface BodyProps {
- title?: string
- children: ComponentChildren
-}
-
-export default function Body({ title, children }: BodyProps) {
+export default function Body({ children }: QuartzComponentProps) {
return <article>
- {title && <h1>{title}</h1>}
{children}
</article>
}
--
Gitblit v1.10.0