import React, { useState } from 'react'; import { Card } from '../../ui/card'; import { Button } from '../../ui/button'; import { Download, FileText, Shield } from 'lucide-react'; import { DataExportModal } from './DataExportModal'; export const DataExportView: React.FC = () => { const [showModal, setShowModal] = useState(false); // Mock History const [exports] = useState([ { id: 'e1', date: 'Oct 10, 2023', type: 'Full Archive (JSON)', status: 'ready', size: '45 MB', }, { id: 'e2', date: 'Jan 15, 2023', type: 'Profile Only (CSV)', status: 'expired', size: '2 MB', }, ]); return (

YOUR DATA

Manage, export, and control your personal information.

Request Data Archive

You can request a download of all the data Veza has associated with your account. This includes your profile, uploaded content metadata, comments, and purchase history.

Export History

{exports.map((item) => (
{item.type}
{item.date} {item.size}
{item.status === 'ready' ? ( ) : ( Expired )}
))}
{showModal && ( setShowModal(false)} onRequest={() => {}} /> )}
); };