"use client"; import { Trans, useTranslation } from "react-i18next"; import { Button } from "@kandev/ui/button"; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "@kandev/ui/dialog"; import type { PluginRecord } from "@/lib/types/plugins"; type UninstallPluginDialogProps = { target: PluginRecord | null; busy: boolean; onClose: () => void; onConfirm: () => void; }; export function UninstallPluginDialog({ target, busy, onClose, onConfirm, }: UninstallPluginDialogProps) { const { t } = useTranslation(); return ( { if (!open) onClose(); }} > {t("plugins:uninstallPlugin")} {/* The display name comes from the plugin's manifest, so it is third-party data rather than our copy. */} This will permanently remove{" "} {target?.display_name} and revoke its API key. This action cannot be undone. ); }