import React from "react"; import { Flex, useColorMode, useTheme } from "@chakra-ui/core"; export default React.forwardRef( ({ value, label, labelBg, labelColor, valueBg, valueColor }, ref) => { const theme = useTheme(); const { colorMode } = useColorMode(); const _labelBg = { light: theme.colors.black, dark: theme.colors.gray[200] }; const _labelColor = { light: theme.colors.white, dark: theme.colors.white }; const _valueBg = { light: theme.colors.primary[600], dark: theme.colors.primary[600] }; const _valueColor = { light: theme.colors.white, dark: theme.colors.white }; return ( {value} {label} ); } );