Aaron Pham
2024-02-26 d6e79d1ea6ace4e70b1813a63c5060c89681a2ad
1
2
3
4
5
6
7
8
9
10
11
import { htmlToJsx } from "../../util/jsx"
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "../types"
 
const Content: QuartzComponent = ({ fileData, tree }: QuartzComponentProps) => {
  const content = htmlToJsx(fileData.filePath!, tree)
  const classes: string[] = fileData.frontmatter?.cssclasses ?? []
  const classString = ["popover-hint", ...classes].join(" ")
  return <article class={classString}>{content}</article>
}
 
export default (() => Content) satisfies QuartzComponentConstructor