import { forwardRef } from 'react'; import { Flex } from '@chakra-ui/react'; import { useColorValue } from '~/context'; import { useOpposingColor } from '~/hooks'; import type { TLabel } from './types'; export const Label = forwardRef((props, ref) => { const { value, label, labelColor, bg = 'primary.600', valueColor, ...rest } = props; const valueColorAuto = useOpposingColor(bg); const defaultLabelColor = useColorValue('blackAlpha.700', 'whiteAlpha.700'); return ( {value} {label} ); });