1
0
forked from GitHub/quartz
isuckatcode-quartz/quartz/components/Sidenotes.tsx
Aaron Pham 3529b10af3
feat(components): sidenotes
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-10-30 06:16:00 -04:00

17 lines
535 B
TypeScript

import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
// @ts-ignore
import script from "./scripts/sidenotes.inline"
import style from "./styles/sidenotes.scss"
import { classNames } from "../util/lang"
export default (() => {
const Sidenotes: QuartzComponent = ({ displayClass }: QuartzComponentProps) => (
<div class={classNames(displayClass, "sidenotes")}></div>
)
Sidenotes.css = style
Sidenotes.afterDOMLoaded = script
return Sidenotes
}) satisfies QuartzComponentConstructor