quartz-research-note/quartz/components/Body.tsx

14 lines
433 B
TypeScript
Raw Normal View History

2023-06-17 02:41:59 +00:00
// @ts-ignore
2023-07-23 00:27:41 +00:00
import clipboardScript from "./scripts/clipboard.inline"
import clipboardStyle from "./styles/clipboard.scss"
2023-06-12 06:46:38 +00:00
import { QuartzComponentConstructor, QuartzComponentProps } from "./types"
2023-06-07 04:19:00 +00:00
2023-06-12 06:46:38 +00:00
function Body({ children }: QuartzComponentProps) {
2023-07-23 00:27:41 +00:00
return <div id="quartz-body">{children}</div>
2023-06-07 04:19:00 +00:00
}
Body.afterDOMLoaded = clipboardScript
Body.css = clipboardStyle
2023-06-12 06:46:38 +00:00
export default (() => Body) satisfies QuartzComponentConstructor