mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-03 02:11:48 +00:00
40 lines
825 B
TypeScript
40 lines
825 B
TypeScript
import { ConfirmDialog } from "@/components/ui/confirm-dialog";
|
|
import { useI18n } from "@/i18n";
|
|
|
|
export function DeleteConfirmDialog({
|
|
cancelLabel,
|
|
confirmLabel,
|
|
description,
|
|
loading,
|
|
onCancel,
|
|
onConfirm,
|
|
open,
|
|
title,
|
|
}: DeleteConfirmDialogProps) {
|
|
const { t } = useI18n();
|
|
|
|
return (
|
|
<ConfirmDialog
|
|
open={open}
|
|
onCancel={onCancel}
|
|
onConfirm={onConfirm}
|
|
title={title}
|
|
description={description}
|
|
loading={loading}
|
|
destructive
|
|
confirmLabel={confirmLabel ?? t.common.delete}
|
|
cancelLabel={cancelLabel ?? t.common.cancel}
|
|
/>
|
|
);
|
|
}
|
|
|
|
interface DeleteConfirmDialogProps {
|
|
cancelLabel?: string;
|
|
confirmLabel?: string;
|
|
description?: string;
|
|
loading: boolean;
|
|
onCancel: () => void;
|
|
onConfirm: () => void;
|
|
open: boolean;
|
|
title: string;
|
|
}
|