Bluesky app fork with some witchin' additions 馃挮
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 48 lines 1.3 kB view raw
1import {View} from 'react-native' 2import {Trans} from '@lingui/macro' 3 4import {useEnableSquareButtons} from '#/state/preferences/enable-square-buttons' 5import {atoms as a, select, useTheme} from '#/alf' 6import {ShieldCheck_Stroke2_Corner0_Rounded as Shield} from '#/components/icons/Shield' 7import {Text} from '#/components/Typography' 8 9export function AgeAssuranceBadge() { 10 const t = useTheme() 11 const enableSquareButtons = useEnableSquareButtons() 12 13 return ( 14 <View 15 style={[ 16 a.flex_row, 17 a.align_center, 18 a.gap_xs, 19 a.px_sm, 20 a.py_xs, 21 a.pr_sm, 22 enableSquareButtons ? a.rounded_sm : a.rounded_full, 23 { 24 backgroundColor: select(t.name, { 25 light: t.palette.primary_100, 26 dark: t.palette.primary_100, 27 dim: t.palette.primary_100, 28 }), 29 }, 30 ]}> 31 <Shield size="sm" /> 32 <Text 33 style={[ 34 a.font_semi_bold, 35 a.leading_snug, 36 { 37 color: select(t.name, { 38 light: t.palette.primary_800, 39 dark: t.palette.primary_800, 40 dim: t.palette.primary_800, 41 }), 42 }, 43 ]}> 44 <Trans>Age Assurance</Trans> 45 </Text> 46 </View> 47 ) 48}