import React from 'react'; import { StyleSheet } from 'react-native'; import Button from '../Button'; import AvatarContainer from './AvatarContainer'; import { IAvatar } from './interfaces'; import I18n from '../../i18n'; import { useTheme } from '../../theme'; import { BUTTON_HIT_SLOP } from '../message/utils'; const styles = StyleSheet.create({ editAvatarButton: { marginTop: 8, paddingVertical: 8, paddingHorizontal: 12, marginBottom: 0, height: undefined }, textButton: { fontSize: 12, fontWeight: '600' } }); interface IAvatarContainer extends Omit { handleEdit?: () => void; } const AvatarWithEdit = ({ style, text = '', avatar, emoji, borderRadius, type, children, onPress, getCustomEmoji, isStatic, rid, handleEdit }: IAvatarContainer): React.ReactElement => { const { colors } = useTheme(); return ( <> {handleEdit ? (