import type { Attributes, Lang } from '../../../types'; import { computeLineHighlightColor, findTextColor } from '../../../util/colors'; import { languages } from '../../../util/languages'; export const StringSmall = (attributes: Attributes) => { const { language, bgColor, textColor, headerString } = attributes; let textBorder = computeLineHighlightColor(textColor, attributes); if (textColor?.startsWith('var(')) { textBorder = findTextColor(attributes) ?? textColor; } return ( {headerString || languages[language as Lang]} ); };