import { TemplateCard } from './TemplateCard'; interface Template { id: string; title: string; // type: string; description: string; updateTime: string; // useCount: number; // rating: number; category: string; file_path?: string; file_format?: string; } interface TemplateGridProps { templates: Template[]; viewMode: 'grid' | 'list'; onTemplateClick: (templateId: string) => void; } export function TemplateGrid({ templates, viewMode, onTemplateClick }: TemplateGridProps) { return (