fp/services/next/app/components/notifications.tsx

10 lines
258 B
TypeScript
Raw Normal View History

2024-01-20 16:16:14 +00:00
export function DangerNotification ({ errors }: { errors: String[] }): JSX.Element {
return (
<div className="notification is-danger">
{errors && errors.map((error, index) => (
<p key={index}>Error:{error}</p>
))}
</div>
);
}