oxios 1.5.2

Oxios Agent OS — Agent Operating System powered by oxi-sdk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { useTranslation } from 'react-i18next'
import { Badge } from '@/components/ui/badge'

const tierColors: Record<string, string> = {
  hot: 'bg-error-subtle text-error',
  warm: 'bg-warning-subtle text-warning',
  cold: 'bg-info-subtle text-info',
}

export function TierBadge({ tier }: { tier: string }) {
  const { t } = useTranslation()
  return (
    <Badge variant="outline" className={tierColors[tier] ?? ''}>
      {t(`memory.${tier}`, tier)}
    </Badge>
  )
}