import React, {memo} from 'react' import {StyleSheet, View} from 'react-native' import { AppBskyActorDefs, AppBskyLabelerDefs, ModerationOpts, RichText as RichTextAPI, } from '@atproto/api' import {LoadingPlaceholder} from 'view/com/util/LoadingPlaceholder' import {usePalette} from 'lib/hooks/usePalette' import {ProfileHeaderStandard} from './ProfileHeaderStandard' import {ProfileHeaderLabeler} from './ProfileHeaderLabeler' let ProfileHeaderLoading = (_props: {}): React.ReactNode => { const pal = usePalette('default') return ( ) } ProfileHeaderLoading = memo(ProfileHeaderLoading) export {ProfileHeaderLoading} interface Props { profile: AppBskyActorDefs.ProfileViewDetailed labeler: AppBskyLabelerDefs.LabelerViewDetailed | undefined descriptionRT: RichTextAPI | null moderationOpts: ModerationOpts hideBackButton?: boolean isPlaceholderProfile?: boolean } let ProfileHeader = (props: Props): React.ReactNode => { if (props.profile.associated?.labeler) { if (!props.labeler) { return } return } return } ProfileHeader = memo(ProfileHeader) export {ProfileHeader} const styles = StyleSheet.create({ avi: { position: 'absolute', top: 110, left: 10, width: 84, height: 84, borderRadius: 42, borderWidth: 2, }, content: { paddingTop: 8, paddingHorizontal: 14, paddingBottom: 4, }, buttonsLine: { flexDirection: 'row', marginLeft: 'auto', marginBottom: 12, }, br40: {borderRadius: 40}, br50: {borderRadius: 50}, })