decord/source/modules/parent_tools/hooks/useScheduleTimeControlsRowProps.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

44 lines
1.7 KiB
TypeScript

// Module ID: 14910
// Function ID: 14911
// Name: useScheduleTimeControlsRowProps
// Dependencies: [21, 4556, 1114, 2396, 2]
// Exports: default
// Module 14910 (useScheduleTimeControlsRowProps)
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 */;
const jsx = jsxProd.jsx;
const result = set.fileFinishedImporting("modules/parent_tools/hooks/useScheduleTimeControlsRowProps.tsx");
export default function useScheduleTimeControlsRowProps(arr) {
if (0 === arr.length) {
let obj = { subLabel: null, trailing: "a" };
obj = { variant: "text-xs/medium", color: "text-muted", children: null };
const intl = getSystemLocale.intl;
obj[2] = intl.string(messagesProxyDefault.fOBIZH);
obj[0] = jsx(Text.Text, { variant: "text-xs/medium", color: "text-muted", children: null });
return obj;
} else {
obj1 = { subLabel: null, trailing: null };
const intl2 = getSystemLocale.intl;
const obj2 = { count: null };
obj2[0] = arr.length;
obj1[0] = intl2.formatToPlainString(messagesProxyDefault.XfwcpX, obj2);
const intl3 = getSystemLocale.intl;
const string = intl3.string;
const tmp11 = messagesProxyDefault;
if (someResult) {
let stringResult = string(tmp11["8vDHRq"]);
} else {
stringResult = string(tmp11["4z9fN+"]);
}
obj = { variant: "text-sm/medium", color: "text-muted", children: null };
obj[2] = stringResult;
obj1[1] = jsx(Text.Text, { variant: "text-sm/medium", color: "text-muted", children: null });
return obj1;
}
};