// components/cards/TemplateCard.tsx import React from 'react' import Link from 'next/link' import { Card, CardContent, CardActions, Button, Box, Typography } from '../fakemui' import { TemplateIcon } from './TemplateIcon' import { TemplateDifficultyBadge } from '../feedback/TemplateDifficultyBadge' import { TemplateRating } from '../feedback/TemplateRating' import { Template } from '@metabuilder/interfaces/templates' import styles from '../../scss/components/cards/template-card.module.scss' interface TemplateCardProps { template: Template [key: string]: any } /** * Template card component - Grid view * Displays template summary with icon, metadata, and actions */ export const TemplateCard = ({ template, ...rest }: TemplateCardProps) => { return ( {template.metadata.featured && ( ⭐ Featured )} {template.name} {template.description} {template.workflows.length} workflow{template.workflows.length !== 1 ? 's' : ''} ⬇️ {template.metadata.downloads?.toLocaleString() || 0} ) }