2023-10-22 04:05:46 +00:00
|
|
|
import { htmlToJsx } from "../../util/jsx"
|
2023-07-01 07:03:01 +00:00
|
|
|
import { QuartzComponentConstructor, QuartzComponentProps } from "../types"
|
|
|
|
|
2023-10-22 04:05:46 +00:00
|
|
|
function Content({ fileData, tree }: QuartzComponentProps) {
|
|
|
|
const content = htmlToJsx(fileData.filePath!, tree)
|
2024-02-05 10:45:36 +00:00
|
|
|
const classes: string[] = fileData.frontmatter?.cssclasses ?? []
|
|
|
|
const classString = ["popover-hint", ...classes].join(" ")
|
|
|
|
return <article class={classString}>{content}</article>
|
2023-07-01 07:03:01 +00:00
|
|
|
}
|
|
|
|
|
2023-07-02 20:08:29 +00:00
|
|
|
export default (() => Content) satisfies QuartzComponentConstructor
|