import React from "react"; import {Button, Col, Container, Form, Row} from "react-bootstrap"; import {HiMagnifyingGlass} from "react-icons/hi2" import useFormData from "../Hooks/useFormData"; const timeOfArrival = () => { let times = []; for (let i = 0; i <= 23; i++) { for (let j = 0; j <= 30; j += 30) { let hour = i.toString().padStart(2, "0"); let minutes = j.toString().padStart(2, "0"); times.push(`${hour}:${minutes}`); } } return times; }; function TabFormRestaurant() { const {formData, onFormChange, setFormData} = useFormData({ restaurantLocation: '', date: '', hourFrom: '', hourTo: '', numPeople: '' }) const a = timeOfArrival(); return (
{a.map((x) => { return ; })} {a.filter((x) => x > formData.hourFrom).map((x) => { return ; })}
); } export default TabFormRestaurant;