dependabot[bot]
2024-02-19 f1619620d5cd285b4a4dabf69a9dd1d95de2f36c
1
2
3
4
5
6
7
8
9
10
11
import { htmlToJsx } from "../../util/jsx"
import { QuartzComponentConstructor, QuartzComponentProps } from "../types"
 
function Content({ 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