"use client"; import { useI18n } from "@/hooks/useI18n"; export function ProjectTrustDialog({ cwd, busy, error, onCancel, onConfirm, }: { cwd: string; busy: boolean; error: string | null; onCancel: () => void; onConfirm: () => void; }) { const { t } = useI18n(); return (
{ if (!busy && event.target === event.currentTarget) onCancel(); }} >
{t("trust.dialogTitle")}
{t("trust.dialogBody")}
{cwd} {error && (
{error}
)}
); }