import { BaseMdxFrontmatter, getAllChilds } from "@/lib/markdown"; import Link from "next/link"; export default async function Outlet({ path }: { path: string }) { if (!path) throw new Error("path not provided"); const output = await getAllChilds(path); return (
{output.map((child) => ( ))}
); } type ChildCardProps = BaseMdxFrontmatter & { href: string }; function ChildCard({ description, href, title }: ChildCardProps) { return (

{title}

{description}

); }