import { Modal, Upload } from "antd"; import { CloudUpload, FileText, ShieldCheck } from "lucide-react"; import type { RegisteredPlugin } from "@/lib/plugins/plugin-types"; import pluginDevelopmentGuideMarkdown from "./plugin-development-guide.md?raw"; import { getPluginDocumentation } from "./plugin-documentation"; import { PluginMarkdown } from "./plugin-markdown"; type UploadPluginModalProps = { open: boolean; onClose: () => void; onUpload: (file: File) => void; }; export function UploadPluginModal({ open, onClose, onUpload }: UploadPluginModalProps) { return (
); } type PluginDetailsModalProps = { plugin?: RegisteredPlugin; restoreFocus: boolean; onClose: () => void; }; export function PluginDetailsModal({ plugin, restoreFocus, onClose }: PluginDetailsModalProps) { return ( {plugin.manifest.name} v{plugin.manifest.version} ) : null} open={Boolean(plugin)} centered footer={null} destroyOnHidden focusTriggerAfterClose={restoreFocus} onCancel={onClose} styles={{ body: { maxHeight: "min(78vh, 820px)", overflowY: "auto", overscrollBehavior: "contain" } }} > {plugin ? : null} ); }