import * as React from "react"; import { View, ImageSourcePropType, StyleProp, ViewStyle } from "react-native"; import Touchable from "../components/Touchable"; import CircleImage from "./CircleImage"; import { withTheme } from "@draftbit/theme"; import type { ReadTheme } from "@draftbit/theme"; import type { IconSlot } from "../interfaces/Icon"; type Props = { image: string | ImageSourcePropType; size?: number; onPress?: () => void; style?: StyleProp; theme: ReadTheme; } & IconSlot; /** * @deprecated DEPRECATED */ const AvatarEdit: React.FC> = ({ Icon, image, size = 80, onPress = () => {}, style, theme, ...rest }) => { const colorStyles = { editBackgroundColor: theme.colors.branding.primary, editIconColor: theme.colors.background.base, editBorderColor: theme.colors.background.base, }; const dimensions = { width: size, height: size, }; return ( ); }; export default withTheme(AvatarEdit);