Spaces:
Configuration error
Configuration error
Download frontend/src/components/shared/buttons/exit-project-button.tsx from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 673 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/shared/buttons/exit-project-button.tsx
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/components/shared/buttons/exit-project-button.tsx
-
curl -L -o exit-project-button.tsx https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/shared/buttons/exit-project-button.tsx
673 Bytes
| import { useTranslation } from "react-i18next"; | |
| import { I18nKey } from "#/i18n/declaration"; | |
| import PlusIcon from "#/icons/plus.svg?react"; | |
| import { TooltipButton } from "./tooltip-button"; | |
| interface ExitProjectButtonProps { | |
| onClick: () => void; | |
| } | |
| export function ExitProjectButton({ onClick }: ExitProjectButtonProps) { | |
| const { t } = useTranslation(); | |
| const startNewProject = t(I18nKey.PROJECT$START_NEW); | |
| return ( | |
| <TooltipButton | |
| tooltip={startNewProject} | |
| ariaLabel={startNewProject} | |
| onClick={onClick} | |
| testId="new-project-button" | |
| > | |
| <PlusIcon width={28} height={28} className="text-[#9099AC]" /> | |
| </TooltipButton> | |
| ); | |
| } | |