mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-24 12:36:23 +00:00
11 lines
529 B
TypeScript
11 lines
529 B
TypeScript
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
|