import React from "react"; import {Container, Form, Button, Row, Col} from "react-bootstrap"; import useFormData from "../Hooks/useFormData"; import {HiMagnifyingGlass} from "react-icons/hi2"; 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; }; const SearchCriteriasRestaurant = (props) => { const {formData, onFormChange, onCheckBoxChange, setFormData} = useFormData(props.criterias) const a = timeOfArrival(); return ( <>
{a.map((x) => { return ; })} {a.filter((x) => x > formData.hourFrom).map((x) => { return ; })}
); }; export default SearchCriteriasRestaurant;