Dwinzo_dev/app/src/components/layout/confirmationPopup/ConfirmationPopup.tsx

33 lines
748 B
TypeScript

// ConfirmationDialog.tsx
import React from "react";
interface ConfirmationPopupProps {
message: string;
onConfirm: () => void;
onCancel: () => void;
}
const ConfirmationPopup: React.FC<ConfirmationPopupProps> = ({
message,
onConfirm,
onCancel,
}) => {
return (
<div className="confirmation-overlay">
<div className="confirmation-modal">
<p className="message">{message}</p>
<div className="buttton-wrapper">
<button className="confirmation-button" onClick={onConfirm}>
OK
</button>
<button className="confirmation-button" onClick={onCancel}>
Cancel
</button>
</div>
</div>
</div>
);
};
export default ConfirmationPopup;