import { getBorrowableItems } from "../utils/fetchData"; import { useAtom } from "jotai"; import { startDate, endDate } from "../States/Atoms"; import Cookies from "js-cookie"; export const AddLoan = () => { const [start, setStart] = useAtom(startDate); const [end, setEnd] = useAtom(endDate); return (