Spaces:
Running
Running
Download frontend/src/app/components/ErrorMessage.js from davebulaval/cole: direct link, hf CLI and curl.
- Browser
- Download file 303 Bytes
-
https://huggingface.co/spaces/davebulaval/cole/resolve/main/frontend/src/app/components/ErrorMessage.js
- Command line
-
hf download hf://spaces/davebulaval/cole/frontend/src/app/components/ErrorMessage.js
-
curl -L -o ErrorMessage.js https://huggingface.co/spaces/davebulaval/cole/resolve/main/frontend/src/app/components/ErrorMessage.js
303 Bytes
| export default function ErrorMessage({children,condition}){ | |
| return( | |
| <div className="pt-2"> | |
| <div className="pt-2 space-y-2"> | |
| {condition && ( | |
| <div className="text-red-600 text-sm font-medium"> | |
| {children} | |
| </div> | |
| )} | |
| </div> | |
| </div> | |
| ); | |
| } |