import { cn } from '@/lib/utils'; import { useDashboard } from './useDashboard'; export default function Index() { const { visibleFeatures, recentFeatures, showRecent, navigateTo } = useDashboard(); return (
{showRecent && (

最近使用

{recentFeatures.map(({ key, feature }) => { const IconComponent = feature.icon; return ( ); })}
)}

全部工具

{visibleFeatures.length === 0 ? (

没有可用的工具

) : (
{visibleFeatures.map(({ key, feature }) => { const IconComponent = feature.icon; return ( ); })}
)}
); }