mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-07 12:31:01 -05:00
14 lines
344 B
TypeScript
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}/>
|
|
}
|