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 (

Clear all data

SQLChat saves all of your data in localstorage. Please be sure to clear data.

); }; export default ClearDataConfirmModal;