"use client"; import AppContext from "@ctx/AppContext"; import { useRouter } from "next/navigation"; import { useContext } from "react"; import { BottomSheet } from "react-spring-bottom-sheet"; const BottomSheetLogOut = ({ id }) => { const CTX = useContext(AppContext); const cart = CTX.state.cart; const router = useRouter(); const handleLogOut = async () => { localStorage.removeItem("token"); CTX.setProfile([]); CTX.setBottomSheetLogOutOpen(false); router.push("/"); }; return ( CTX.setBottomSheetLogOutOpen(false)} className={"z-50 relative"} >

آیا از خروج حساب کاربری اطمینان دارید ؟{" "}

); }; export default BottomSheetLogOut;