Files
purrgram/src/components/CRT/PopupNotification.jsx
T

16 lines
452 B
React
Raw Normal View History

import React from 'react';
const PopupNotification = ({ visible, message, isError, onClose }) => {
if (!visible) return null;
return (
<div className={`popup-notification ${isError ? 'error' : 'success'}`}>
<div className="popup-message">{message}</div>
<button className="popup-button" onClick={onClose}>
[ OK ]
</button>
</div>
);
};
export default PopupNotification;