mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-25 18:13:48 -04:00
* Test * Add pretty formatting * Fix Tests * Fix Tests * Fix Tests * Fix * Add pretty formatting fix * Fix * Test * Fix tests * Clean typeckech * Add prettier check * Fix api tsconfig * Fix api tsconfig * Fix tsconfig * Fix * Fix * Prettier
14 lines
347 B
TypeScript
14 lines
347 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} />
|
|
}
|