keroosha.cybergulag.today/quartz/components/pages/Content.tsx
2023-10-21 21:06:02 -07:00

10 lines
365 B
TypeScript

import { htmlToJsx } from "../../util/jsx"
import { QuartzComponentConstructor, QuartzComponentProps } from "../types"
function Content({ fileData, tree }: QuartzComponentProps) {
const content = htmlToJsx(fileData.filePath!, tree)
return <article class="popover-hint">{content}</article>
}
export default (() => Content) satisfies QuartzComponentConstructor