Files
discord-decomp/sources/modules/parent_tools/hooks/useScheduleTimeControlsRowProps.tsx
2026-07-28 01:06:53 +03:00

51 lines
2.8 KiB
TypeScript

/* Metro module 13423; source: modules/parent_tools/hooks/useScheduleTimeControlsRowProps.tsx; dependencies: [33, 4573, 1244, 2224, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
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});
(FileImportTrackerModule).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 object;
const intl = (IndexNativeModule).intl;
const Text = (TextModule).Text;
var string;
if (a0.length === 0) {
object = {};
object.subLabel = (
<Text variant="text-xs/medium" color="text-muted">
{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).fOBIZH)}
</Text>
);
object.trailing = undefined;
} else {
value = a0.some(function(a0) {
return a0.enabled;
});
object = {};
var formatToPlainString = intl.formatToPlainString;
var XfwcpX = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).XfwcpX;
object.subLabel = Reflect.apply(formatToPlainString, intl, [XfwcpX, {count: a0.length}]);
string = intl.string;
var defaultImport = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
object.trailing = (
<Text variant="text-sm/medium" color="text-muted">
{value ? Reflect.apply(string, intl, [defaultImport['8vDHRq']]) : Reflect.apply(string, intl,
[defaultImport['4z9fN+']])}
</Text>
);
}
return object;
}
}
global.__d(_fun102136, 13423, [33, 4573, 1244, 2224,
2]) /* metro module 13423, dependencies: [33, 4573, 1244, 2224, 2] */;