An ATproto social media client -- with an independent Appview.
7
fork

Configure Feed

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

at main 30 lines 833 B view raw
1import {View} from 'react-native' 2import {msg} from '@lingui/macro' 3import {useLingui} from '@lingui/react' 4 5import {atoms as a, useTheme, type ViewStyleProp} from '#/alf' 6import {Button, ButtonIcon} from '#/components/Button' 7import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times' 8 9export function ExternalEmbedRemoveBtn({ 10 onRemove, 11 style, 12}: {onRemove: () => void} & ViewStyleProp) { 13 const t = useTheme() 14 const {_} = useLingui() 15 16 return ( 17 <View style={[a.absolute, {top: 8, right: 8}, a.z_50, style]}> 18 <Button 19 label={_(msg`Remove attachment`)} 20 onPress={onRemove} 21 size="small" 22 variant="solid" 23 color="secondary" 24 shape="round" 25 style={[t.atoms.shadow_sm]}> 26 <ButtonIcon icon={X} size="sm" /> 27 </Button> 28 </View> 29 ) 30}