import { useState } from "react"; import { Link } from "react-router-dom"; import catchErrors from "../../utils/catchErrors.js"; import styles from "../Schedule/schedule.module.scss"; import styles2 from "./studyplan.module.scss"; const PlanItem = () => { const [error, setError] = useState("") async function delPlan() { try { setError("") alert("해당 일정을 삭제했습니다.") window.location.reload() } catch (error) { catchErrors(error, setError) } } return (