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