import { toast } from "react-hot-toast"; import { useTranslation } from "react-i18next"; import Modal from "./kit/Modal"; interface Props { close: () => void; } const ClearDataConfirmModal = (props: Props) => { const { close } = props; const { t } = useTranslation(); const handleClearData = () => { window.localStorage.clear(); close(); toast.success("Data cleared. The page will be reloaded."); setTimeout(() => { window.location.reload(); }, 500); }; return (

SQL Chat saves all your data in your local browser. Are you sure to clear all of them?

); }; export default ClearDataConfirmModal;