import { Box, Center, SimpleGrid, Stack } from "@chakra-ui/react" import Link from "next/link" import { LuCode } from "react-icons/lu" import { kebabCase } from "scule" import { getComponent } from "../illustrations" import { docs } from ".velite" const components = docs.filter( (doc) => doc.slug.includes("components/") && !doc.slug.includes("concepts/"), ) export const ComponentGrid = () => { return ( {components.map((item) => { const key = kebabCase(item.slug).replace("docs-components-", "") const Illustration = getComponent(key) ?? LuCode return (
{item.title} {item.description}
) })}
) }