37 lines
2.2 KiB
TypeScript
37 lines
2.2 KiB
TypeScript
/* Metro module 13423; source: modules/parent_tools/hooks/useScheduleTimeControlsRowProps.tsx; dependencies: [33, 4573, 1244, 2224, 2] */
|
|
function _fun102136(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13613:6, offset: 0x0222e683, size: 123 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useScheduleTimeControlsRowProps.tsx');
|
|
exports.default = useScheduleTimeControlsRowProps;
|
|
}
|
|
|
|
function useScheduleTimeControlsRowProps(a0) { // fn#102137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13613:216, offset: 0x0222e6fe, size: 358 bytes, params: 2, frame: 22
|
|
var value;
|
|
var object2;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
var string;
|
|
if (a0.length === 0) {
|
|
object2 = {};
|
|
object2.subLabel = <Text variant="text-xs/medium" color="text-muted">{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).fOBIZH)}</Text>;
|
|
object2.trailing = undefined;
|
|
} else {
|
|
value = a0.some(function(a0) {
|
|
return a0.enabled;
|
|
});
|
|
object2 = {};
|
|
var formatToPlainString = intl.formatToPlainString;
|
|
var XfwcpX = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).XfwcpX;
|
|
object2.subLabel = Reflect.apply(formatToPlainString, intl, [XfwcpX, {count: a0.length}]);
|
|
string = intl.string;
|
|
var defaultImport = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
|
|
object2.trailing = <Text variant="text-sm/medium" color="text-muted">{value ? Reflect.apply(string, intl,
|
|
[defaultImport['8vDHRq']]) : Reflect.apply(string, intl, [defaultImport['4z9fN+']])}</Text>;
|
|
}
|
|
return object2;
|
|
}
|
|
|