import React from 'react'
import style from './PromoProduct.module.css'
import { IProductVariantPromo } from '~/common/types/promotion'
import Image from 'next/image'

type Props = {
  variant: IProductVariantPromo
}

const PromoProduct = ({ variant }: Props) => {
  return (
    <div className={style.product}>
      <div className={style.image}>
        <Image src={variant.image} alt={variant.display_name} width={320} height={320} />
      </div>
      <div className={style.fillDesc}>Isi {variant.qty} barang</div>
      <div className={style.name}>{variant.name}</div>
    </div>
  )
}

export default PromoProduct