/** * PermissionPrompt asks the user to approve or reject a sensitive agent * action, offering exactly the options the agent proposed (allow once, * always, reject, ...), like Zed's permission bar. * * @example * console.log(requestId, optionId)} * /> */ import type { PermissionRequestState } from "../reducer"; import { InlineText } from "./InlineText"; interface PermissionPromptProps { request: PermissionRequestState; onRespond: (requestId: string, optionId: string) => void; } export function PermissionPrompt({ request, onRespond, }: PermissionPromptProps) { return (

🔐

{request.options.map((option) => ( ))}
); }