export const categories: Product[] = [
  {
    id: 1,
    name: 'Elektronika',
    products: [
      {
        id: 1,
        name: 'Krasovka',
        price: 125000,
        oldPrice: 14000000,
        image: '/adidas-ultraboost-running-shoes.jpg',
        rating: 4.5,
        reviews: 128,
        discount: 10,
        inStock: true,
        liked: false,
      },
      {
        id: 2,
        name: 'Apple MacBook Pro 14"',
        price: 25000000,
        oldPrice: 27000000,
        image: '/apple-ipad-pro-tablet.jpg',
        rating: 5.0,
        reviews: 89,
        discount: 8,
        liked: false,
        inStock: true,
      },
      {
        id: 3,
        name: 'Apple MacBook Pro 14"',
        price: 25000000,
        oldPrice: 27000000,
        image: '/apple-ipad-pro-tablet.jpg',
        rating: 5.0,
        reviews: 89,
        discount: 8,
        inStock: true,
        liked: true,
      },
      {
        id: 4,
        name: 'Apple MacBook Pro 14"',
        price: 25000000,
        oldPrice: 27000000,
        image: '/apple-ipad-pro-tablet.jpg',
        rating: 5.0,
        reviews: 89,
        discount: 8,
        inStock: true,
        liked: false,
      },
      {
        id: 5,
        name: 'Sony WH-1000XM5',
        price: 3500000,
        oldPrice: 4000000,
        image: '/sony-wh-1000xm5.png',
        rating: 4.8,
        reviews: 256,
        discount: 12,
        inStock: true,
        liked: true,
      },
    ],
  },
  {
    id: 2,
    name: 'Sport kiyimlari',
    products: [
      {
        id: 6,
        name: 'Nike Air Max 270',
        price: 1800000,
        oldPrice: 2000000,
        image: '/nike-air-max-270.png',
        rating: 4.3,
        reviews: 342,
        discount: 10,
        inStock: false,
        liked: false,
      },
      {
        id: 7,
        name: 'Adidas Ultraboost',
        price: 2000000,
        oldPrice: 2200000,
        image: '/adidas-ultraboost-running-shoes.jpg',
        rating: 4.6,
        reviews: 215,
        discount: 9,
        liked: true,
        inStock: true,
      },
    ],
  },
  {
    id: 3,
    name: 'Uy jihozlari',
    products: [
      {
        id: 8,
        name: 'LG OLED TV 55"',
        price: 18000000,
        oldPrice: 20000000,
        image: '/lg-oled-tv-55-inch.jpg',
        rating: 4.7,
        reviews: 76,
        discount: 10,
        inStock: true,
        liked: false,
      },
      {
        id: 9,
        name: 'Canon EOS R6',
        price: 22000000,
        oldPrice: 24000000,
        image: '/canon-eos-r6-camera.jpg',
        rating: 4.9,
        reviews: 54,
        discount: 8,
        inStock: true,
        liked: false,
      },
    ],
  },
];

export interface Product {
  id: number;
  name: string;
  products: ProductDetail[];
}

export interface ProductDetail {
  id: number;
  name: string;
  categoryName?: string;
  price: number;
  oldPrice: number;
  image: string;
  rating: number;
  reviews: number;
  discount: number;
  inStock: boolean;
  liked: boolean;
}
