import ArrowLeftB from "@/components/icons/ArrowLeftB"; import { Button } from "@mui/material"; import Cookies from "js-cookie"; import { useParams } from "next/navigation"; import { useState } from "react"; function SendAppo({ hour, setStep }) { const params = useParams(); const doctorId = params.doctorId; const [loading, setLoading] = useState(false); const sendReq = () => { const isLogged = Cookies.get("access_token"); if (isLogged) { setStep((step) => step + 1); } // setLoading(true); // request // .postAppointment({ // doctor_id: doctorId, // slot: hour, // }) // .then(() => { // setLoading(false); // }) // .catch(() => { // // // }); }; return (