Feat: Deleting files in batches. #3221 (#7234)

### What problem does this PR solve?
Feat: Deleting files in batches. #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-04-23 19:03:02 +08:00
committed by GitHub
parent 51d9bde5a3
commit 1366712560
14 changed files with 405 additions and 98 deletions

View File

@ -16,15 +16,21 @@ interface IProps {
title?: string;
onOk?: (...args: any[]) => any;
onCancel?: (...args: any[]) => any;
hidden?: boolean;
}
export function ConfirmDeleteDialog({
children,
title,
onOk,
hidden = false,
}: IProps & PropsWithChildren) {
const { t } = useTranslation();
if (hidden) {
return children;
}
return (
<AlertDialog>
<AlertDialogTrigger asChild>{children}</AlertDialogTrigger>