import Modal from "../ui/Modal"; import Button from "../ui/Button"; import type { CatalogItem } from "../../lib/types"; interface Props { item: CatalogItem; /** The commit whose components are listed; the install pins exactly this one. */ commit: string; onConfirm: () => void; onCancel: () => void; } /** * Plugins can bring hooks, MCP servers and commands — from their catalog * entry as well as their folder — so installing one is always confirmed with * everything that will run listed (PR review #4). */ export default function PluginConfirmModal({ item, commit, onConfirm, onCancel }: Props) { return ( } > {item.plugin_components.length === 0 ? (

This plugin declares no hooks, MCP servers or commands. It may still add skills or agents.

) : ( )}
); }