Spaces:
Runtime error
Runtime error
Download components/Buttons/SidebarActionButton/SidebarActionButton.tsx from Daniton/FreeGpt: direct link, hf CLI and curl.
- Browser
- Download file 406 Bytes
-
https://huggingface.co/spaces/Daniton/FreeGpt/resolve/main/components/Buttons/SidebarActionButton/SidebarActionButton.tsx
- Command line
-
hf download hf://spaces/Daniton/FreeGpt/components/Buttons/SidebarActionButton/SidebarActionButton.tsx
-
curl -L -o SidebarActionButton.tsx https://huggingface.co/spaces/Daniton/FreeGpt/resolve/main/components/Buttons/SidebarActionButton/SidebarActionButton.tsx
406 Bytes
| import { MouseEventHandler, ReactElement } from 'react'; | |
| interface Props { | |
| handleClick: MouseEventHandler<HTMLButtonElement>; | |
| children: ReactElement; | |
| } | |
| const SidebarActionButton = ({ handleClick, children }: Props) => ( | |
| <button | |
| className="min-w-[20px] p-1 text-neutral-400 hover:text-neutral-100" | |
| onClick={handleClick} | |
| > | |
| {children} | |
| </button> | |
| ); | |
| export default SidebarActionButton; | |