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