import PropTypes from 'prop-types' import React from 'react' import styles from './styles.module.css' export const TimeInput = ({ value, onChange }) => { const handleChange = (event) => { const inputValue = event.target.value if (inputValue === '' || (!isNaN(inputValue) && (parseInt(inputValue) >= 1 && parseInt(inputValue) <= 60))) { onChange(inputValue === '' ? null : parseInt(inputValue, 10)) } } return (