import { AlertCircleIcon } from "lucide-react"; import { AlertDialog, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogTitle, } from "src/components/ui/alert-dialog"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "src/components/ui/tooltip"; import { App } from "src/types"; export function ConnectionDetailsModal({ app, onClose, }: { app: App; onClose: () => void; }) { return ( Connection Details

App ID

{app.id}

App Public Key

{app.appPubkey}

Wallet Public Key

{app.walletPubkey} {!app.uniqueWalletPubkey && ( This connection does not have its own unique wallet pubkey. Re-connect for additional privacy. )}

Last used

{app.lastUsedAt ? new Date(app.lastUsedAt).toString() : "Never"}

Created At

{new Date(app.createdAt).toString()}

{app.metadata && (

Metadata

{JSON.stringify(app.metadata, null, 4)}

)}
Close
); }