Jacky Zhao
2023-06-12 352075ae81a3304a7bfa2512ef69b1cdacb26c12
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>
}