import { motion } from 'framer-motion'; import Image from 'next/image'; import Link from 'next/link'; // Типы для свойств компонента interface CollectionsProps { collections: Collection[]; } // Тип для коллекции interface Collection { id: number; name: string; image: string; description: string; url: string; } export default function Collections({ collections }: CollectionsProps) { return (
Коллекции
{collections.map((collection, index) => (
{collection.name}

{collection.name}

{collection.description}

))}
); }