| | |
| | | import clipboardScript from './scripts/clipboard.inline' |
| | | import clipboardStyle from './styles/clipboard.scss' |
| | | import { QuartzComponentProps } from "./types" |
| | | // @ts-ignore |
| | | import clipboardScript from "./scripts/clipboard.inline" |
| | | import clipboardStyle from "./styles/clipboard.scss" |
| | | import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types" |
| | | |
| | | export default function Body({ children }: QuartzComponentProps) { |
| | | return <article> |
| | | {children} |
| | | </article> |
| | | const Body: QuartzComponent = ({ children }: QuartzComponentProps) => { |
| | | return <div id="quartz-body">{children}</div> |
| | | } |
| | | |
| | | Body.afterDOMLoaded = clipboardScript |
| | | Body.css = clipboardStyle |
| | | |
| | | export default (() => Body) satisfies QuartzComponentConstructor |