import React from 'react'; import { Cards, Card } from 'fumadocs-ui/components/card'; export default function DocCardList({ items }: { items?: any[] }) { // If items are provided (manual list), render them if (items) { return ( {items.map((item, index) => ( ))} ); } // If no items, it's likely an auto-generated list for the current sidebar category. // Fumadocs doesn't have a direct equivalent to "current sidebar category items" in a component easily accessible here without context. // For now, we'll render a placeholder or nothing to avoid build errors. // In a real migration, we'd use `useTreeContext` or similar if available, or rely on Fumadocs' index page generation. return (
DocCardList Placeholder

Auto-generated card lists are not yet fully supported in the migration.

); }