import React, { useState } from 'react' import InputLabel from '@/Components/InputLabel' import TextInput from '@/Components/TextInput' export default function ModalReminder(props) { const { isOpen, toggle, onAdd } = props const [date, setDate] = useState('') const handleClickAdd = () => { if (date !== '') { toggle() onAdd(date) } } return (