rizaldy.club/quartz/components/Body.tsx

16 lines
419 B
TypeScript
Raw Normal View History

2023-06-07 11:19:00 +07:00
import clipboardScript from './scripts/clipboard.inline'
import clipboardStyle from './styles/clipboard.scss'
2023-06-12 13:46:38 +07:00
import { QuartzComponentConstructor, QuartzComponentProps } from "./types"
2023-06-07 11:19:00 +07:00
2023-06-12 13:46:38 +07:00
function Body({ children }: QuartzComponentProps) {
2023-06-07 11:19:00 +07:00
return <article>
{children}
</article>
}
Body.afterDOMLoaded = clipboardScript
Body.css = clipboardStyle
2023-06-12 13:46:38 +07:00
export default (() => Body) satisfies QuartzComponentConstructor