import type { ExportMeta } from "~/server/account-export"; import { useDataExport } from "~/hooks/use-data-export"; import { Button } from "~/ui/Button"; import { ErrorBanner } from "~/ui/Callout"; import { Panel } from "~/ui/Panel"; import { RelativeTime } from "~/ui/RelativeTime"; export function ExportDataPanel({ pending }: { pending: ExportMeta | null }) { const archive = useDataExport(); return (

Download a JSON archive of your profile, email addresses, public keys, token metadata, issues, pull requests, reviews, discussions, comments and releases you wrote, stars, follows, notification settings and billing summary. Clone your repositories with Git for their contents. You can create one archive a day; it stays available for 24 hours.

{pending ? (
Created ; available for 24 hours
) : ( )}
); }