import type { TextProps } from 'react-native'; import type { Theme } from '@fluentui-react-native/framework'; import { styleFunction } from '@uifabricshared/foundation-tokens'; import { calculateEffectiveSizes } from './PersonaCoin.helpers'; import type { IPersonaCoinTokens } from './PersonaCoin.types'; const _initialsKeyProps: (keyof IPersonaCoinTokens)[] = ['coinSize', 'initialsSize', 'size']; function _buildInitialsStyles(tokenProps: IPersonaCoinTokens /*, theme: ITheme */): TextProps { const { initialsSize } = calculateEffectiveSizes(tokenProps); return { style: { fontSize: initialsSize, }, }; } export const buildInitialsStyles = styleFunction(_buildInitialsStyles, _initialsKeyProps);