import React from 'react'; const AlertMessage = ({ type = 'info', title, message, actionLabel, onAction, }) => { // Définir les styles en fonction du type d'alerte const typeStyles = { info: 'bg-blue-100 border-blue-500 text-blue-700', warning: 'bg-yellow-100 border-yellow-500 text-yellow-700', error: 'bg-red-100 border-red-500 text-red-700', success: 'bg-green-100 border-green-500 text-green-700', }; const alertStyle = typeStyles[type] || typeStyles.info; return (
{message}
{actionLabel && onAction && (