import Input from '../../Base/Input/Index';
import Button from '../../Base/Button/Index';
import styles from './styles.module.css';

const Index = ({ onChange, onConfirm, disabled }) => {
  return (
    <>
      <h2 className={styles['modal-title']}>Select Your Seats</h2>
      <p className={styles['modal-title']}>
        Please choose how many seats you'd like to book.
      </p>
      <Input
        label={'Number of Seats'}
        placeholder="Enter number of seats"
        type="number"
        max="10"
        min="1"
        onChange={(e) => onChange(e.target.value)}
      />
      <div className={`${styles['btn-wrapper']} ${styles['flex-direction']}`}>
        <Button size={'md'} onClick={onConfirm} disabled={disabled}>
          Confirm
        </Button>
      </div>
    </>
  );
};

export default Index;
