'use client'; import { Shield } from 'lucide-react'; import { useWorkspaceStore } from '@/lib/stores/workspace'; import { Button } from '@/components/ui/button'; export function ApprovalCard() { const pendingApproval = useWorkspaceStore((s) => s.pendingApproval); const resolveApproval = useWorkspaceStore((s) => s.resolveApproval); if (!pendingApproval) return null; const { req } = pendingApproval; return (
{req.command}
The agent wants to run this. Allow it?