mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
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>
23 lines
673 B
TypeScript
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
|