* The error message component * @param {*} props * @param {string} props.errorMessage - The error message to display * @returns {JSX.Element} – The error message component
(props)
| 7 | * @returns {JSX.Element} – The error message component |
| 8 | */ |
| 9 | function ErrorMessage(props) { |
| 10 | return ( |
| 11 | <div className="rounded-md bg-red-50 p-4"> |
| 12 | <div className="flex"> |
| 13 | <div className="flex-shrink-0"> |
| 14 | <XCircleIcon |
| 15 | className="h-5 w-5 text-red-400" |
| 16 | aria-hidden="true" |
| 17 | /> |
| 18 | </div> |
| 19 | <div className="ml-3"> |
| 20 | <h3 className="text-sm font-medium text-red-800"> |
| 21 | There were errors with your submission |
| 22 | </h3> |
| 23 | <div className="mt-2 text-sm text-red-700"> |
| 24 | <ul role="list" className="list-disc space-y-1 pl-5"> |
| 25 | <li>{props.errorMessage.toString()}</li> |
| 26 | </ul> |
| 27 | </div> |
| 28 | </div> |
| 29 | </div> |
| 30 | </div> |
| 31 | ) |
| 32 | } |
| 33 | |
| 34 | export default ErrorMessage |
nothing calls this directly
no outgoing calls
no test coverage detected