mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-24 09:48:32 +00:00
14 lines
388 B
TypeScript
14 lines
388 B
TypeScript
import { allDocs } from "contentlayer/generated"
|
|
|
|
import MdxHead from "@/components/docs/mdx-head"
|
|
|
|
export default function Head({ params }) {
|
|
const slug = params?.slug?.join("/") || ""
|
|
const doc = allDocs.find((doc) => doc.slugAsParams === slug)
|
|
return (
|
|
<MdxHead
|
|
params={params}
|
|
og={{ heading: doc.description, type: "Documentation", mode: "light" }}
|
|
/>
|
|
)
|
|
}
|