import clsx from 'clsx'; import { useConceptOptions } from '@/context/ConceptOptionsContext'; import { GramData } from '@/models/language'; import { colorFgGrammeme } from '@/styling/color'; import { labelGrammeme } from '@/utils/labels'; interface BadgeGrammemeProps { /** Grammeme to display. */ grammeme: GramData; } /** * Displays a badge with a grammeme tag. */ function BadgeGrammeme({ grammeme }: BadgeGrammemeProps) { const { colors } = useConceptOptions(); return (