Download src/components/features/chat/git-control-bar-tooltip-wrapper.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/chat/git-control-bar-tooltip-wrapper.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/chat/git-control-bar-tooltip-wrapper.tsx
-
curl -L -o git-control-bar-tooltip-wrapper.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/chat/git-control-bar-tooltip-wrapper.tsx
703 Bytes
| import { StyledTooltip } from "#/components/shared/buttons/styled-tooltip"; | |
| interface GitControlBarTooltipWrapperProps { | |
| tooltipMessage: string; | |
| testId: string; | |
| children: React.ReactNode; | |
| shouldShowTooltip: boolean; | |
| } | |
| export function GitControlBarTooltipWrapper({ | |
| children, | |
| tooltipMessage, | |
| testId, | |
| shouldShowTooltip, | |
| }: GitControlBarTooltipWrapperProps) { | |
| if (!shouldShowTooltip) { | |
| return children; | |
| } | |
| return ( | |
| <StyledTooltip | |
| content={tooltipMessage} | |
| placement="top" | |
| showArrow | |
| tooltipClassName="bg-white text-black" | |
| > | |
| <span data-testid={testId} className="hover:opacity-100"> | |
| {children} | |
| </span> | |
| </StyledTooltip> | |
| ); | |
| } | |