This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,57 @@
// Metro module 9877 (f9878).
import _slicedToArray from "../../../../_bundle/_slicedToArray";
import { ActivityIndicator, View } from "react-native";
import { createStyles } from "../../../../design/components/Styles/native/createStyles";
import { DARK_PRIMARY_300_LIGHT_PRIMARY_400 } from "../../../../design/migrations/native/LegacyTokens";
import useChannelFollowerStats from "../../../channel_following/useChannelFollowerStats";
import { LegacyText } from "../../../../design/void/native";
import { t, intl } from "../../../../intl/index.native";
const useStyles = createStyles({
alertContainer: {
paddingTop: 16
},
alertLoading: {
paddingTop: 62,
paddingBottom: 46
},
alertBodyText: {
marginBottom: 16,
fontSize: 16,
lineHeight: 24,
color: DARK_PRIMARY_300_LIGHT_PRIMARY_400
}
});
export default function PublishModal(props) {
let props2;
const channelId = props.channelId;
const styles = useStyles();
const r23 = _slicedToArray(useChannelFollowerStats(channelId), 2);
const r13 = r23[0];
if (r23[1]) {
return <View style={styles.alertLoading}>
<ActivityIndicator animating />
</View>;
}
const r26 = r13?.guildsFollowing != null && r13?.guildsFollowing > 0;
const r12 = {
style: styles.alertBodyText,
children: null
};
if (r26) {
const GCGrNP = t.GCGrNP;
let numGuildsFollowing = r13?.guildsFollowing;
if (numGuildsFollowing == null) {
numGuildsFollowing = 0;
}
r12.children = intl.format(GCGrNP, {
numGuildsFollowing
});
props2 = r12;
} else {
r12.children = intl.string(t["8FpqOs"]);
props2 = r12;
}
return <View style={styles.alertContainer}>
<LegacyText {...props2} />
</View>;
};