fp/packages/next/app/components/notifications.tsx
Chris Grimmett d60c6ac3bb init
2024-01-20 08:16:14 -08:00

10 lines
258 B
TypeScript

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>
);
}