import { DocumentTextIcon, TrashIcon } from '@heroicons/react/24/solid'; import type { PesPatternData } from '../utils/pystitchConverter'; interface PatternSummaryCardProps { pesData: PesPatternData; fileName: string; onDeletePattern: () => void; canDelete: boolean; isDeleting: boolean; } export function PatternSummaryCard({ pesData, fileName, onDeletePattern, canDelete, isDeleting }: PatternSummaryCardProps) { return (

Active Pattern

{fileName}

Size {((pesData.bounds.maxX - pesData.bounds.minX) / 10).toFixed(1)} x{' '} {((pesData.bounds.maxY - pesData.bounds.minY) / 10).toFixed(1)} mm
Stitches {pesData.stitchCount.toLocaleString()}
Colors:
{pesData.threads.slice(0, 8).map((thread, idx) => (
))} {pesData.colorCount > 8 && (
+{pesData.colorCount - 8}
)}
{canDelete && ( )}
); }