This repository has been archived on 2024-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
quartz-wiki/quartz/components/pages/Content.tsx

10 lines
365 B
TypeScript
Raw Permalink Normal View History

2024-01-10 14:39:54 +08:00
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