Implement Activation Sync card

This commit is contained in:
Hristo Nedelkov 2023-08-29 12:07:48 +03:00
parent 209b2c706d
commit be3c194986

View File

@ -0,0 +1,47 @@
import { Stack, XStack, YStack } from 'tamagui'
import StandardGauge from '../../../components/Charts/StandardGauge'
import { Text } from '@status-im/components'
import BorderBox from '../../../components/General/BorderBox'
type ActivationSyncCardProps = {
synced: number
total: number
color: string
}
const ActivationSyncCard = ({ synced, total, color }: ActivationSyncCardProps) => {
return (
<XStack space={'$2'} alignItems="center">
<Stack
style={{
height: '35px',
width: '35px',
}}
>
<StandardGauge
data={[
{
id: 'sync card',
label: 'Sync Status',
value: synced,
color: color,
},
{
id: 'free',
label: 'free',
value: total - synced || 1,
color: '#E7EAEE',
},
]}
/>
</Stack>
<YStack>
<Text size={15} weight={'semibold'}>
{synced} / {total}
</Text>
</YStack>
</XStack>
)
}
export default ActivationSyncCard