"use client"; 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) { return ( { if (!open) onClose(); }} > Uninstall plugin This will permanently remove{" "} {target?.display_name ?? "this plugin"} {" "} and revoke its API key. This action cannot be undone. ); }