Spaces:
Sleeping
Sleeping
Download src/components/player/InfoCard.jsx from randome-games/proxy: direct link, hf CLI and curl.
- Browser
- Download file 630 Bytes
-
https://huggingface.co/spaces/randome-games/proxy/resolve/main/src/components/player/InfoCard.jsx
- Command line
-
hf download hf://spaces/randome-games/proxy/src/components/player/InfoCard.jsx
-
curl -L -o InfoCard.jsx https://huggingface.co/spaces/randome-games/proxy/resolve/main/src/components/player/InfoCard.jsx
630 Bytes
| import theming from '/src/styles/theming.module.css'; | |
| import clsx from 'clsx'; | |
| const InfoCard = ({ app, theme }) => { | |
| return ( | |
| <div | |
| className={clsx( | |
| 'flex h-13 w-full p-2.5 py-7 items-center rounded-xl', | |
| theming[`theme-${theme || 'default'}`], | |
| )} | |
| > | |
| <img src={app?.icon} className="w-12 h-12 rounded-md object-cover" /> | |
| <div className="ml-4 flex flex-col gap-1"> | |
| <p className="font-bold">{app?.appName || 'Unknown App'}</p> | |
| <span className="text-ellipsis">{app?.desc || 'No description available.'}</span> | |
| </div> | |
| </div> | |
| ); | |
| }; | |
| export default InfoCard; | |