Files
Compass/web/components/MarkdownPageLoader.tsx
2025-12-27 12:51:47 +02:00

14 lines
344 B
TypeScript

'use client'
import MarkdownPage, {MD_PATHS} from 'web/components/markdown'
import {useMarkdown} from "web/hooks/use-markdown"
type Props = {
filename: typeof MD_PATHS[number]
}
export function MarkdownPageLoader({filename}: Props) {
const content = useMarkdown(filename)
return <MarkdownPage content={content} filename={filename}/>
}