import React from 'react';
import Image from 'next/image';
import {ButtonImg, Button } from '../../../UI'

type PizzaBlockProps = {
  id: string;
  title: string;
  src: ы;
  imageUrl: string;
  sizes: number[];
  types: number[];
  rating: number;
};

export const PizzaBlock: React.FC<PizzaBlockProps> = ({
  id,
  title,
  src,
  alt,
  compound,
  price,
}) => {

  const onClickAdd = () => {
    console.log('ok');
  };

  return (
          <li className={"vendor-item " + " "+ " product_card"}>
            <div className='vendor-item__link"'>
                <Image
                    className = {'vendor-item__images'}
                    src={src}
                    alt={alt}
                    width={187}
                    height={188}
                />
            </div>
            <span className={'product_card_box'} >
                <h3>{title}</h3>
                <p className={'product_card_text'}>{compound}</p>
                <span className={'product_card_video'}>
                    <ButtonImg img={'video'}>Видос</ButtonImg>
                </span>
                <span className={'product_card_footer'}>
                    <p className={'product_card_price'}>{price}</p>
                    <Button
                        styles={'yellow button_size_32'}
                        align={'button_align_right'}
                        onClick={() => onClickAdd()}
                    >Добавить
                    </Button>
                </span>
            </span>
        </li>
  );
};


