Spaces:
Sleeping
Sleeping
Download components/ResourcePanel.jsx from Gannnaja/anycoder-3dc58a51: direct link, hf CLI and curl.
- Browser
- Download file 515 Bytes
-
https://huggingface.co/spaces/Gannnaja/anycoder-3dc58a51/resolve/main/components/ResourcePanel.jsx
- Command line
-
hf download hf://spaces/Gannnaja/anycoder-3dc58a51/components/ResourcePanel.jsx
-
curl -L -o ResourcePanel.jsx https://huggingface.co/spaces/Gannnaja/anycoder-3dc58a51/resolve/main/components/ResourcePanel.jsx
515 Bytes
| export default function ResourcePanel({ resources }) { | |
| return ( | |
| <div className="bg-gray-100 p-4 rounded-lg mb-4"> | |
| <h3 className="font-bold mb-2">Resources</h3> | |
| <div className="grid grid-cols-2 md:grid-cols-4 gap-2"> | |
| {Object.entries(resources).map(([key, value]) => ( | |
| <div key={key} className="bg-white p-2 rounded"> | |
| <p className="text-sm capitalize">{key}</p> | |
| <p className="font-bold">{value}</p> | |
| </div> | |
| ))} | |
| </div> | |
| </div> | |
| ) | |
| } |