Spaces:
Configuration error
Configuration error
Download web/libs/editor/src/components/AnnotationsCarousel/ViewAllToggle.tsx from bisalsaha/lebel-studio: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/web/libs/editor/src/components/AnnotationsCarousel/ViewAllToggle.tsx
- Command line
-
hf download hf://spaces/bisalsaha/lebel-studio/web/libs/editor/src/components/AnnotationsCarousel/ViewAllToggle.tsx
-
curl -L -o ViewAllToggle.tsx https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/web/libs/editor/src/components/AnnotationsCarousel/ViewAllToggle.tsx
1.14 kB
| import { observer } from "mobx-react"; | |
| import { IconViewAll } from "@humansignal/icons"; | |
| import { Typography } from "@humansignal/ui"; | |
| import { cn } from "../../utils/bem"; | |
| import "./ViewAllToggle.prefix.css"; | |
| interface ViewAllToggleProps { | |
| isActive: boolean; | |
| onClick: () => void; | |
| } | |
| export const ViewAllToggle = observer(({ isActive, onClick }: ViewAllToggleProps) => { | |
| return ( | |
| <button | |
| type="button" | |
| className={cn("view-all-toggle").mod({ selected: isActive }).toClassName()} | |
| onClick={onClick} | |
| aria-label="Compare all annotations" | |
| aria-pressed={isActive} | |
| data-testid="compare-all-toggle" | |
| > | |
| <div className={cn("view-all-toggle").elem("mainSection").toClassName()}> | |
| <div className={cn("view-all-toggle").elem("iconContainer").toClassName()}> | |
| <IconViewAll /> | |
| </div> | |
| <div className={cn("view-all-toggle").elem("content").toClassName()}> | |
| <Typography variant="label" size="small" className={cn("view-all-toggle").elem("label").toClassName()}> | |
| Compare All | |
| </Typography> | |
| </div> | |
| </div> | |
| </button> | |
| ); | |
| }); | |