import { ExternalLink } from "lucide-react"; import { useTranslation } from "react-i18next"; import { I18nKey } from "#/i18n/declaration"; import { cn } from "#/utils/utils"; type BrowserChromeBarProps = { url: string; hasPage: boolean; }; export function BrowserChromeBar({ url, hasPage }: BrowserChromeBarProps) { const { t } = useTranslation("openhands"); const disabledButtonClassName = cn( "shrink-0 inline-flex items-center justify-center w-6 h-6 rounded-md", "text-[var(--oh-text-tertiary)] opacity-40 cursor-not-allowed", ); const iconClassName = "w-3.5 h-3.5"; return (
{url || t(I18nKey.BROWSER$URL_PLACEHOLDER)}
{hasPage && url ? ( ) : ( )}
); }