Download src/components/features/chat/confirmation-mode-enabled.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 884 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/chat/confirmation-mode-enabled.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/chat/confirmation-mode-enabled.tsx
-
curl -L -o confirmation-mode-enabled.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/chat/confirmation-mode-enabled.tsx
884 Bytes
| import { useTranslation } from "react-i18next"; | |
| import { I18nKey } from "#/i18n/declaration"; | |
| import LockIcon from "#/icons/lock.svg?react"; | |
| import { useSettings } from "#/hooks/query/use-settings"; | |
| import { StyledTooltip } from "#/components/shared/buttons/styled-tooltip"; | |
| function ConfirmationModeEnabled() { | |
| const { t } = useTranslation("openhands"); | |
| const { data: settings } = useSettings(); | |
| if (!settings?.confirmation_mode) { | |
| return null; | |
| } | |
| return ( | |
| <StyledTooltip | |
| closeDelay={100} | |
| content={t(I18nKey.COMMON$CONFIRMATION_MODE_ENABLED)} | |
| tooltipClassName="bg-white text-black hover:bg-transparent" | |
| > | |
| <div className="flex items-center justify-center w-[26px] h-[26px] rounded-lg bg-[var(--oh-surface)]"> | |
| <LockIcon width={15} height={15} /> | |
| </div> | |
| </StyledTooltip> | |
| ); | |
| } | |
| export default ConfirmationModeEnabled; | |