2022-02-09 20:41:02 +02:00
|
|
|
import 'package:flutter/material.dart';
|
2023-05-25 05:52:43 +02:00
|
|
|
import 'package:immich_mobile/shared/ui/confirm_dialog.dart';
|
2022-02-09 20:41:02 +02:00
|
|
|
|
2023-05-25 05:52:43 +02:00
|
|
|
class DeleteDialog extends ConfirmDialog {
|
2022-10-06 22:41:56 +02:00
|
|
|
final Function onDelete;
|
|
|
|
|
2023-05-25 05:52:43 +02:00
|
|
|
const DeleteDialog({Key? key, required this.onDelete})
|
|
|
|
: super(
|
|
|
|
key: key,
|
|
|
|
title: "delete_dialog_title",
|
|
|
|
content: "delete_dialog_alert",
|
|
|
|
cancel: "delete_dialog_cancel",
|
|
|
|
ok: "delete_dialog_ok",
|
|
|
|
onOk: onDelete,
|
|
|
|
);
|
2022-02-09 20:41:02 +02:00
|
|
|
}
|