import React from 'react';
import { IQuantitySelect, QuantitySelectorModal } from '../../QuantitySelector/QuantitySelectorModal';

interface IProps {
  quantitySelect: IQuantitySelect;
  setQuantitySelect: React.Dispatch<React.SetStateAction<IQuantitySelect>>;
}

export const ItemQuantitySelectorModal = ({
  quantitySelect,
  setQuantitySelect,
}: IProps): JSX.Element => {
  return (
    <QuantitySelectorModal
      quantitySelect={quantitySelect}
      setQuantitySelect={setQuantitySelect}
    />
  );
};

export type { IQuantitySelect };
