dependabot[bot]
2025-02-25 4901472aa88e817d3eb304b7b5e677bba79cd5cd
1
2
3
4
5
6
7
8
9
10
11
12
import { ComponentChildren } from "preact"
import { htmlToJsx } from "../../util/jsx"
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "../types"
 
const Content: QuartzComponent = ({ fileData, tree }: QuartzComponentProps) => {
  const content = htmlToJsx(fileData.filePath!, tree) as ComponentChildren
  const classes: string[] = fileData.frontmatter?.cssclasses ?? []
  const classString = ["popover-hint", ...classes].join(" ")
  return <article class={classString}>{content}</article>
}
 
export default (() => Content) satisfies QuartzComponentConstructor