import React from 'react'; import Link from 'next/link'; import { Card, CardContent } from '@/components/ui/card'; import { Typography } from '@/components/Typography'; interface CollectionImage { url: string; altText?: string; } interface Collection { id: string; title: string; handle: string; description?: string; image?: CollectionImage; } interface CollectionCardProps { collection: Collection; } const CollectionCard: React.FC = ({ collection }) => { return ( {/* Collection Image */}
{collection.image ? ( {collection.image.altText ) : (
)}
{/* Collection Info */} {collection.title} {collection.description && (

{collection.description.substring(0, 100)} {collection.description.length > 100 ? '...' : ''}

)}
View Collection
); }; export default CollectionCard;