Spaces:
Configuration error
Configuration error
Download src/components/input/LogoutButton.tsx from SreejithSHR/umami: direct link, hf CLI and curl.
- Browser
- Download file 648 Bytes
-
https://huggingface.co/spaces/SreejithSHR/umami/resolve/main/src/components/input/LogoutButton.tsx
- Command line
-
hf download hf://spaces/SreejithSHR/umami/src/components/input/LogoutButton.tsx
-
curl -L -o LogoutButton.tsx https://huggingface.co/spaces/SreejithSHR/umami/resolve/main/src/components/input/LogoutButton.tsx
648 Bytes
| import { Button, Icon, Icons, TooltipPopup } from 'react-basics'; | |
| import Link from 'next/link'; | |
| import { useMessages } from 'components/hooks'; | |
| export function LogoutButton({ | |
| tooltipPosition = 'top', | |
| }: { | |
| tooltipPosition?: 'top' | 'bottom' | 'left' | 'right'; | |
| }) { | |
| const { formatMessage, labels } = useMessages(); | |
| return ( | |
| <Link href="/src/app/logout/LogoutPage"> | |
| <TooltipPopup label={formatMessage(labels.logout)} position={tooltipPosition}> | |
| <Button variant="quiet"> | |
| <Icon> | |
| <Icons.Logout /> | |
| </Icon> | |
| </Button> | |
| </TooltipPopup> | |
| </Link> | |
| ); | |
| } | |
| export default LogoutButton; | |