import { Link } from "@tanstack/react-router"; type ContentIndexItem = { title: string; description?: string; slugs: string[]; url: string; }; type ContentIndexProps = { eyebrow: string; title: string; description: string; emptyLabel: string; items: ContentIndexItem[]; route: "/docs/$"; }; export function ContentIndex({ eyebrow, title, description, emptyLabel, items, route, }: ContentIndexProps) { return (

{eyebrow}

{title}

{description}

{items.length === 0 ? (

{emptyLabel}

) : (
{items.map((item) => (

{item.title}

{item.description ? (

{item.description}

) : null} ))}
)}
); }