// Metro module 13709 (f13710).
import { View } from "react-native";
import UserStore from "../../../stores/UserStore";
import { AnalyticsObjects } from "../../../Constants";
import { createStyles } from "../../../design/components/Styles/native/createStyles";
import Module712 from "../../../_bundle/Module712";
import { useStateFromStores } from "../../../_bundle/Module589";
import PremiumUtils from "../../../utils/PremiumUtils";
import { ActionSheet } from "../../../design/components/Sheet/native/ActionSheet.native";
import { BottomSheetTitleHeader } from "../../../design/components/Sheet/native/BottomSheetTitleHeader.native";
import { intl, t } from "../../../intl/index.native";
import { NitroWheelIcon } from "../../../design/components/Icon/native/redesign/generated/NitroWheelIcon";
import { TableRowGroup } from "../../../design/components/TableRow/native/TableRowGroup.native";
import { TableRow } from "../../../design/components/TableRow/native/TableRow.native";
import { FormLabel, FormSubLabel } from "../../../design/void/Form/native/index";
import UserProfileUpsellButton from "./UserProfileUpsellButton";
const useStyles = createStyles({
nitroWheel: {
marginLeft: Module712.space.PX_8
},
sublabel: {
color: Module712.colors.TEXT_DEFAULT
},
label: {
marginBottom: 4,
color: Module712.colors.INTERACTIVE_TEXT_ACTIVE,
alignItems: "center",
flexDirection: "row"
},
remove: {
color: Module712.colors.TEXT_FEEDBACK_CRITICAL
},
upsellButton: {
marginTop: Module712.space.PX_12,
marginBottom: Module712.space.PX_8
},
upsellTitleContainer: {
flexDirection: "row",
alignItems: "flex-end"
},
titleWrapper: {
flex: 0
},
titleContainer: {
justifyContent: "flex-start"
}
});
export default function ChangeAvatarActionSheet(props) {
const { handleUploadAvatarSelect, handleRemoveAvatarSelect, handleUploadGIFAvatarSelect, handleEditAvatarDecorationSelect } = props;
let showAnimatedAvatarUpsell = props.showAnimatedAvatarUpsell;
if (showAnimatedAvatarUpsell === void 0) {
showAnimatedAvatarUpsell = false;
}
let showRemoveAvatar = props.showRemoveAvatar;
if (showRemoveAvatar === void 0) {
showRemoveAvatar = false;
}
const styles = useStyles();
let trailing = PremiumUtils.isPremium(useStateFromStores([UserStore], () => UserStore.getCurrentUser()));
const props2 = {
title: intl.string(t.lqaIxI),
trailing: null,
titleWrapperStyle: null,
titleContainerStyle: null
};
if (trailing) {
trailing = ;
}
props2.trailing = trailing;
props2.titleWrapperStyle = styles.titleWrapper;
props2.titleContainerStyle = styles.titleContainer;
const r58 = [, ,];
const r84 = [, handleUploadGIFAvatarSelect != null && !showAnimatedAvatarUpsell && , , , ,];
if (showAnimatedAvatarUpsell) {
showAnimatedAvatarUpsell =
} subLabel={<>
>} />;
}
r84[2] = showAnimatedAvatarUpsell;
r84[3] = handleEditAvatarDecorationSelect != null &&
} onPress={handleEditAvatarDecorationSelect} />;
if (showRemoveAvatar) {
showRemoveAvatar = } onPress={handleRemoveAvatarSelect} />;
}
r84[4] = showRemoveAvatar;
r58[1] = {r84};
return {r58};
};