import { toast } from "react-hot-toast"; import Icon from "./Icon"; interface Props { close: () => void; } const ClearDataConfirmModal = (props: Props) => { const { close } = props; const handleClearData = () => { window.localStorage.clear(); close(); toast.success("Message 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?