mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
35 lines
601 B
TypeScript
35 lines
601 B
TypeScript
import { Box, Text, useColorModeValue } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
type Props = {
|
|
label: string;
|
|
value: string;
|
|
}
|
|
|
|
const NumberWidget = ({ label, value }: Props) => {
|
|
return (
|
|
<Box
|
|
bg={ useColorModeValue('blue.50', 'blue.800') }
|
|
px={ 3 }
|
|
py={{ base: 2, lg: 3 }}
|
|
borderRadius={ 12 }
|
|
>
|
|
<Text
|
|
variant="secondary"
|
|
fontSize="xs"
|
|
>
|
|
{ label }
|
|
</Text>
|
|
|
|
<Text
|
|
fontWeight={ 500 }
|
|
fontSize="lg"
|
|
>
|
|
{ value }
|
|
</Text>
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default NumberWidget;
|