public_notes/quartz/components/pages/Content.tsx

10 lines
365 B
TypeScript
Raw Normal View History

import { htmlToJsx } from "../../util/jsx"
2023-07-01 16:03:01 +09:00
import { QuartzComponentConstructor, QuartzComponentProps } from "../types"
function Content({ fileData, tree }: QuartzComponentProps) {
const content = htmlToJsx(fileData.filePath!, tree)
2023-07-03 05:08:29 +09:00
return <article class="popover-hint">{content}</article>
2023-07-01 16:03:01 +09:00
}
2023-07-03 05:08:29 +09:00
export default (() => Content) satisfies QuartzComponentConstructor