This commit is contained in:
2025-05-16 16:41:43 +05:30
parent f304cccc68
commit 2745e95b49
5 changed files with 103 additions and 44 deletions

View File

@@ -2,12 +2,12 @@ export const DeleteConfirmationDialog = ({
isOpen,
onConfirm,
onCancel,
patientName,
entityName,
}: {
isOpen: boolean;
onConfirm: () => void;
onCancel: () => void;
patientName?: string;
entityName?: string;
}) => {
if (!isOpen) return null;
@@ -15,7 +15,9 @@ export const DeleteConfirmationDialog = ({
<div className="fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-50">
<div className="bg-white p-6 rounded-md shadow-md w-[90%] max-w-md">
<h2 className="text-xl font-semibold mb-4">Confirm Deletion</h2>
<p>Are you sure you want to delete <strong>{patientName}</strong>?</p>
<p>
Are you sure you want to delete <strong>{entityName}</strong>?
</p>
<div className="mt-6 flex justify-end space-x-4">
<button
className="bg-gray-200 px-4 py-2 rounded hover:bg-gray-300"