dependabot[bot]
2024-08-26 4e2aea8a5a414b3bcfac0168bea4f6afd032e8f5
quartz/components/pages/Content.tsx
@@ -1,9 +1,11 @@
import { htmlToJsx } from "../../util/jsx"
import { QuartzComponentConstructor, QuartzComponentProps } from "../types"
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "../types"
function Content({ fileData, tree }: QuartzComponentProps) {
const Content: QuartzComponent = ({ fileData, tree }: QuartzComponentProps) => {
  const content = htmlToJsx(fileData.filePath!, tree)
  return <article class="popover-hint">{content}</article>
  const classes: string[] = fileData.frontmatter?.cssclasses ?? []
  const classString = ["popover-hint", ...classes].join(" ")
  return <article class={classString}>{content}</article>
}
export default (() => Content) satisfies QuartzComponentConstructor