MCPcopy Create free account
hub / github.com/caesarHQ/textSQL / ErrorMessage

Function ErrorMessage

client/censusGPT/src/components/error.js:9–32  ·  view source on GitHub ↗

* The error message component * @param {*} props * @param {string} props.errorMessage - The error message to display * @returns {JSX.Element} – The error message component

(props)

Source from the content-addressed store, hash-verified

7 * @returns {JSX.Element} – The error message component
8 */
9function 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
34export default ErrorMessage

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected