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

26 lines
1.8 KiB
TypeScript

/* Metro module 13448; source: modules/parent_tools/hooks/useTimeValue.tsx; dependencies: [31, 2, 10909] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun102277(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13638:6, offset: 0x022358fa, size: 130 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useTimeValue.tsx');
exports.default = function({initial, defaultValue}) {
return initial.useState(_fun102279);
};
exports.timeToMinutes = (require(10909) /* metro dependency 10909: FamilyCenterRestrictedHoursUtils */).timeToMinutes;
function useTimeValue({initial, defaultValue}) { // fn#102278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13638:193, offset: 0x0223597c, size: 51 bytes, params: 2, frame: 11
return initial.useState(function() {
return initial != null ? {hours: initial.hours, minutes: initial.minutes} : defaultValue;
});
function _fun102279() { // fn#102279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13638:262, offset: 0x022359af, size: 52 bytes, params: 1, frame: 4
return initial != null ? {hours: initial.hours, minutes: initial.minutes} : defaultValue;
}
}
}
global.__d(_fun102277, 13448, [31, 2, 10909]) /* metro module 13448, dependencies: [31, 2, 10909] */;