diff --git a/frontend/src/pages/DataPage.jsx b/frontend/src/pages/DataPage.jsx index 30a92f6..5d408bc 100644 --- a/frontend/src/pages/DataPage.jsx +++ b/frontend/src/pages/DataPage.jsx @@ -1,24 +1,50 @@ +import { useState } from "react"; import { Link } from "react-router-dom"; function Data() { + const [lastUpdated, setLastUpdated] = useState("March 22, 2026"); + const [hasData, setHasData] = useState(true); + + const handleDeleteData = () => { + const confirmDelete = window.confirm("Are you sure you want to delete all your data? This action cannot be undone."); + + if (confirmDelete) { + setHasData(false); + setLastUpdated("N/A"); + alert("Your data has been successfully deleted."); + + } + }; + return (
- Last updated: + Last updated:
-- We are commited to protecting your data and maintaining your privacy. That is why - we allow you to control your information at all times. Users who create an account - with us can always view, edit, and delete their data. We will never sell your data - to third parties, and we will always be transparent about how we use your data to - improve our services. -
++ We are committed to protecting your data and maintaining your privacy. + You have full control over your information. Click the button below to + permanently delete all your data from our servers. +
+ + {} + {hasData ? ( + + ) : ( +Your data has been cleared.
+ )} +