Spaces:
Runtime error
Runtime error
Download components/Sidebar/SidebarButton.tsx from Daniton/FreeGpt: direct link, hf CLI and curl.
- Browser
- Download file 488 Bytes
-
https://huggingface.co/spaces/Daniton/FreeGpt/resolve/main/components/Sidebar/SidebarButton.tsx
- Command line
-
hf download hf://spaces/Daniton/FreeGpt/components/Sidebar/SidebarButton.tsx
-
curl -L -o SidebarButton.tsx https://huggingface.co/spaces/Daniton/FreeGpt/resolve/main/components/Sidebar/SidebarButton.tsx
488 Bytes
| import { FC } from 'react'; | |
| interface Props { | |
| text: string; | |
| icon: JSX.Element; | |
| onClick: () => void; | |
| } | |
| export const SidebarButton: FC<Props> = ({ text, icon, onClick }) => { | |
| return ( | |
| <button | |
| className="flex w-full cursor-pointer select-none items-center gap-3 rounded-md py-3 px-3 text-[14px] leading-3 text-white transition-colors duration-200 hover:bg-gray-500/10" | |
| onClick={onClick} | |
| > | |
| <div>{icon}</div> | |
| <span>{text}</span> | |
| </button> | |
| ); | |
| }; | |