import { useConceptTheme } from '../../context/ThemeContext'; import { GramData } from '../../models/language'; import { colorfgGrammeme } from '../../utils/color'; import { labelGrammeme } from '../../utils/labels'; interface GrammemeBadgeProps { key?: string grammeme: GramData } function GrammemeBadge({ key, grammeme }: GrammemeBadgeProps) { const { colors } = useConceptTheme(); return (