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}
{description}
{items.length === 0 ? ({emptyLabel}
) : ({item.description}
) : null} ))}