Bluesky app fork with some witchin' additions 馃挮 witchsky.app
bluesky fork client
at main 45 lines 1.1 kB view raw
1import {type GestureResponderEvent, View} from 'react-native' 2 3import {useModerationOpts} from '#/state/preferences/moderation-opts' 4import {atoms as a, useTheme} from '#/alf' 5import * as ProfileCard from '#/components/ProfileCard' 6import type * as bsky from '#/types/bsky' 7 8export function ProfileCardWithFollowBtn({ 9 profile, 10 noBorder, 11 logContext = 'ProfileCard', 12 position, 13 contextProfileDid, 14 onPress, 15}: { 16 profile: bsky.profile.AnyProfileView 17 noBorder?: boolean 18 logContext?: 'ProfileCard' | 'StarterPackProfilesList' 19 position?: number 20 contextProfileDid?: string 21 onPress?: (e: GestureResponderEvent) => void 22}) { 23 const t = useTheme() 24 const moderationOpts = useModerationOpts() 25 26 if (!moderationOpts) return null 27 28 return ( 29 <View 30 style={[ 31 a.py_md, 32 a.px_xl, 33 !noBorder && [a.border_t, t.atoms.border_contrast_low], 34 ]}> 35 <ProfileCard.Default 36 profile={profile} 37 moderationOpts={moderationOpts} 38 logContext={logContext} 39 position={position} 40 contextProfileDid={contextProfileDid} 41 onPress={onPress} 42 /> 43 </View> 44 ) 45}