2023-10-22 11:05:46 +07:00
|
|
|
import { htmlToJsx } from "../../util/jsx"
|
2023-07-01 14:03:01 +07:00
|
|
|
import { QuartzComponentConstructor, QuartzComponentProps } from "../types"
|
|
|
|
|
2023-10-22 11:05:46 +07:00
|
|
|
function Content({ fileData, tree }: QuartzComponentProps) {
|
|
|
|
const content = htmlToJsx(fileData.filePath!, tree)
|
2023-07-03 03:08:29 +07:00
|
|
|
return <article class="popover-hint">{content}</article>
|
2023-07-01 14:03:01 +07:00
|
|
|
}
|
|
|
|
|
2023-07-03 03:08:29 +07:00
|
|
|
export default (() => Content) satisfies QuartzComponentConstructor
|