77 lines
4.1 KiB
TypeScript
77 lines
4.1 KiB
TypeScript
/* Metro module 9020; source: components_native/common/ViewEmptyState.tsx; dependencies: [31, 27, 661, 33, 4501, 6597, 697, 1305, 2] */
|
|
import Native from '../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
import TextStyles from '../../modules/rebrand/native/TextStyles.tsx'; /* Metro dependency 6597 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as NativeModule from '../../design/void/native.tsx'; /* Metro dependency 1305 */
|
|
|
|
function _fun70188(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9205:6, offset: 0x01cf1e4f, size: 417 bytes, params: 8, frame: 25
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
let value = ReactNativeModule;
|
|
const env0_2 = value.View;
|
|
const env0_3 = value.Image;
|
|
const Fonts = (ConstantsModule).Fonts;
|
|
value = require(33) /* metro dependency 33 */;
|
|
const env0_4 = value.jsx;
|
|
const env0_5 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
const object2 = {};
|
|
const DISPLAY_SEMIBOLD = Fonts.DISPLAY_SEMIBOLD;
|
|
const MOBILE_TEXT_HEADING_PRIMARY = (Native).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
|
copyDataProperties(object2, TextStyles(DISPLAY_SEMIBOLD, MOBILE_TEXT_HEADING_PRIMARY, 18), undefined);
|
|
object2['textAlign'] = 'center';
|
|
object2['marginTop'] = 32;
|
|
object2['opacity'] = 0.8;
|
|
const PRIMARY_MEDIUM = Fonts.PRIMARY_MEDIUM;
|
|
const env0_6 = Reflect.apply(createStyles, value, [{emptyContainer: {'flex': 1, 'justifyContent': 'center',
|
|
'alignItems': 'center', 'marginHorizontal': 36}, emptyImage: {'width': 170, 'height': 130},
|
|
fixOpticalIllusion: {'marginTop': -50, 'alignItems': 'center'}, emptyLabel: object2,
|
|
emptyText: {'fontFamily': null, 'fontSize': 13, 'marginTop': 8, 'marginHorizontal': 10, 'opacity': 0.6,
|
|
'fontWeight': '400', fontFamily: PRIMARY_MEDIUM}}]);
|
|
(FileImportTrackerModule).fileFinishedImporting('components_native/common/ViewEmptyState.tsx');
|
|
exports.default = ViewEmptyState;
|
|
function ViewEmptyState({source, label, text, style}) { // fn#70189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9205:630, offset: 0x01cf1ff0, size: 308 bytes, params: 2, frame: 26
|
|
const LegacyText = (NativeModule).LegacyText;
|
|
const styles = useStyles();
|
|
return (
|
|
<View style={[styles.emptyContainer, style]}>
|
|
<View style={styles.fixOpticalIllusion}>
|
|
<Image
|
|
resizeMode="contain"
|
|
source={source}
|
|
style={styles.emptyImage}
|
|
/>
|
|
{
|
|
label != null
|
|
? (
|
|
<LegacyText style={styles.emptyLabel}>
|
|
{label.toUpperCase()}
|
|
</LegacyText>
|
|
)
|
|
: null
|
|
}
|
|
{
|
|
text != null
|
|
? (
|
|
<LegacyText style={[styles.emptyLabel, styles.emptyText]}>
|
|
{text}
|
|
</LegacyText>
|
|
)
|
|
: null
|
|
}
|
|
</View>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun70188, 9020, [31, 27, 661, 33, 4501, 6597, 697, 1305,
|
|
2]) /* metro module 9020, dependencies: [31, 27, 661, 33, 4501, 6597, 697, 1305, 2] */;
|