- {confirmAction.type === "remove" && (
- <>
-
- Confirm Remove
-
-
- Are you sure you want to remove this comment?
-
-
-
-
-
- >
- )}
+ {confirmAction?.type === "remove" && (
+
setConfirmAction(null)}
+ onConfirm={() => handleRemove(confirmAction.comment)}
+ title="Confirm Remove"
+ message="Are you sure you want to remove this comment?"
+ confirmLabel="Remove"
+ variant="destructive"
+ loading={actionLoading[confirmAction.comment.id]}
+ />
+ )}
- {confirmAction.type === "restore" && (
- <>
-
- Confirm Restore
-
-
- Are you sure you want to restore this comment?
-
-
-
-
-
- >
- )}
-