diff options
Diffstat (limited to 'src/components/PolicyUpdateOverlay/Badge.tsx')
-rw-r--r-- | src/components/PolicyUpdateOverlay/Badge.tsx | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/components/PolicyUpdateOverlay/Badge.tsx b/src/components/PolicyUpdateOverlay/Badge.tsx new file mode 100644 index 000000000..3829f60a5 --- /dev/null +++ b/src/components/PolicyUpdateOverlay/Badge.tsx @@ -0,0 +1,38 @@ +import {View} from 'react-native' +import {Trans} from '@lingui/macro' + +import {Logo} from '#/view/icons/Logo' +import {atoms as a, useTheme} from '#/alf' +import {Text} from '#/components/Typography' + +export function Badge() { + const t = useTheme() + return ( + <View style={[a.align_start]}> + <View + style={[ + a.pl_md, + a.pr_lg, + a.py_sm, + a.rounded_full, + a.flex_row, + a.align_center, + a.gap_xs, + { + backgroundColor: t.palette.primary_25, + }, + ]}> + <Logo fill={t.palette.primary_600} width={14} /> + <Text + style={[ + a.font_bold, + { + color: t.palette.primary_600, + }, + ]}> + <Trans>Announcement</Trans> + </Text> + </View> + </View> + ) +} |