decord/source/modules/parent_tools/hooks/useScheduleTimeControlsRowProps.tsx

45 lines
1.7 KiB
TypeScript
Raw Normal View History

// Module ID: 14913
// Function ID: 14914
2026-07-20 16:05:17 +00:00
// Name: useScheduleTimeControlsRowProps
// Dependencies: [21, 4556, 1114, 2396, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 14913 (useScheduleTimeControlsRowProps)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import jsxProd from "jsxProd" /* 21 */;
import getSystemLocale from "getSystemLocale" /* 1114 */;
import messagesProxyDefault from "messagesProxy" /* 2396 */;
import Text from "Text" /* 4556 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const jsx = jsxProd.jsx;
const result = set.fileFinishedImporting("modules/parent_tools/hooks/useScheduleTimeControlsRowProps.tsx");
2026-07-20 16:05:17 +00:00
export default function useScheduleTimeControlsRowProps(arr) {
if (0 === arr.length) {
2026-09-08 10:01:24 +00:00
let obj = { subLabel: null, trailing: "a" };
2026-07-29 08:29:29 +00:00
obj = { variant: "text-xs/medium", color: "text-muted", children: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[2] = intl.string(messagesProxyDefault.fOBIZH);
obj[0] = jsx(Text.Text, { variant: "text-xs/medium", color: "text-muted", children: null });
2026-07-20 16:05:17 +00:00
return obj;
} else {
2026-08-24 06:08:38 +00:00
obj1 = { subLabel: null, trailing: null };
const intl2 = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
const obj2 = { count: null };
obj2[0] = arr.length;
2026-08-24 06:08:38 +00:00
obj1[0] = intl2.formatToPlainString(messagesProxyDefault.XfwcpX, obj2);
const intl3 = getSystemLocale.intl;
2026-07-20 16:05:17 +00:00
const string = intl3.string;
2026-08-24 06:08:38 +00:00
const tmp11 = messagesProxyDefault;
2026-07-20 16:05:17 +00:00
if (someResult) {
2026-07-29 08:29:29 +00:00
let stringResult = string(tmp11["8vDHRq"]);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
stringResult = string(tmp11["4z9fN+"]);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { variant: "text-sm/medium", color: "text-muted", children: null };
obj[2] = stringResult;
2026-08-24 06:08:38 +00:00
obj1[1] = jsx(Text.Text, { variant: "text-sm/medium", color: "text-muted", children: null });
2026-07-29 08:29:29 +00:00
return obj1;
2026-07-20 16:05:17 +00:00
}
};