import { useState, useEffect } from "react"; import BtnGroup from "../Buttons/BtnGroup.js"; import catchErrors from "../../utils/catchErrors.js"; import styles from "./form.module.scss"; const ScheduleForm = () => { const [schedule, setSchedule] = useState({}) const [error, setError] = useState("") useEffect(() => { }, []) async function handleSubmit(e) { e.preventDefault() try { setError("") } catch (error) { catchErrors(error, setError) } } return (
) } export default ScheduleForm