import { Form } from "react-router"; import { useState } from "react"; import { Button } from "~/components/ui/button"; import { Label } from "~/components/ui/label"; import { Textarea } from "~/components/ui/textarea"; import { AlertDialog, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertDialogCancel, } from "~/components/ui/alert-dialog"; type Props = { userEmail: string; dataRequestSuccess?: boolean; dataRequestError?: string; }; export function PrivacySection({ userEmail, dataRequestSuccess, dataRequestError }: Props) { const [confirmed, setConfirmed] = useState(false); const [dialogOpen, setDialogOpen] = useState(false); return (

Data & Privacy

Request a copy of your data or permanently delete your account.

{/* Data Request */}

Request My Data

Under GDPR and CCPA you have the right to a copy of all personal data we hold about you. We will respond within 30 days to{" "} {userEmail}.

{dataRequestSuccess && (

Request received. We'll email you within 30 days.

)} {dataRequestError && (

{dataRequestError}

)} {!dataRequestSuccess && (