Spaces:
Build error
Build error
Download frontend/src/components/code-playground/OutputDisplay.tsx from cryogenic22/Gyan.AI: direct link, hf CLI and curl.
- Browser
- Download file 560 Bytes
-
https://huggingface.co/spaces/cryogenic22/Gyan.AI/resolve/main/frontend/src/components/code-playground/OutputDisplay.tsx
- Command line
-
hf download hf://spaces/cryogenic22/Gyan.AI/frontend/src/components/code-playground/OutputDisplay.tsx
-
curl -L -o OutputDisplay.tsx https://huggingface.co/spaces/cryogenic22/Gyan.AI/resolve/main/frontend/src/components/code-playground/OutputDisplay.tsx
560 Bytes
| // src/components/code-playground/OutputDisplay.tsx | |
| import React from 'react'; | |
| const OutputDisplay = ({ output, error }) => ( | |
| <div className="bg-gray-900 text-white p-4 rounded-lg h-48 overflow-auto"> | |
| {error ? ( | |
| <div className="text-red-400"> | |
| <strong>Error:</strong> | |
| <pre className="mt-2 text-sm">{error}</pre> | |
| </div> | |
| ) : output ? ( | |
| <pre className="text-sm">{output}</pre> | |
| ) : ( | |
| <div className="text-gray-400 text-sm">Code output will appear here...</div> | |
| )} | |
| </div> | |
| ); | |
| export default OutputDisplay; |