Roo-Code/webview-ui/src/components/common/VersionIndicator.tsx
roomote[bot] 24584f54ec
feat: clean up task list in HistoryPreview and History components (#6687)
Co-authored-by: Roo Code <roomote@roocode.com>
Co-authored-by: Bruno Bergher <me@brunobergher.comexport>
Co-authored-by: Bruno Bergher <me@brunobergher.com>
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-08-05 11:05:55 -07:00

23 lines
673 B
TypeScript

import React from "react"
import { useTranslation } from "react-i18next"
import { Package } from "@roo/package"
interface VersionIndicatorProps {
onClick: () => void
className?: string
}
const VersionIndicator: React.FC<VersionIndicatorProps> = ({ onClick, className = "" }) => {
const { t } = useTranslation()
return (
<button
onClick={onClick}
className={`text-xs text-vscode-descriptionForeground hover:text-vscode-foreground transition-colors cursor-pointer px-2 py-1 rounded border ${className}`}
aria-label={t("chat:versionIndicator.ariaLabel", { version: Package.version })}>
v{Package.version}
</button>
)
}
export default VersionIndicator