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

40 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 13920
// Function ID: 106466
2026-07-20 16:05:17 +00:00
// Name: useScheduleTimeControlsRowProps
2026-07-28 08:39:19 +00:00
// Dependencies: [33, 4161, 1212, 2199, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-28 08:39:19 +00:00
// Module 13920 (useScheduleTimeControlsRowProps)
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
const result = require("getSystemLocale").fileFinishedImporting("modules/parent_tools/hooks/useScheduleTimeControlsRowProps.tsx");
2026-07-20 16:05:17 +00:00
export default function useScheduleTimeControlsRowProps(arr) {
if (0 === arr.length) {
let obj = {};
2026-07-23 10:11:24 +00:00
obj = { variant: "text-xs/medium", color: "text-muted" };
const intl = require(1212) /* getSystemLocale */.intl;
2026-07-25 08:10:48 +00:00
obj.children = intl.string(importDefault(2199).fOBIZH);
2026-07-28 08:39:19 +00:00
obj.subLabel = jsx(require(4161) /* Text */.Text, { variant: "text-xs/medium", color: "text-muted" });
2026-07-20 16:05:17 +00:00
obj.trailing = undefined;
return obj;
} else {
obj = {};
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj1 = { count: arr.length };
2026-07-25 08:10:48 +00:00
obj.subLabel = intl2.formatToPlainString(importDefault(2199).XfwcpX, obj1);
2026-07-23 10:11:24 +00:00
const obj2 = { variant: "text-sm/medium", color: "text-muted" };
const intl3 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const string = intl3.string;
2026-07-25 08:10:48 +00:00
const tmp14 = importDefault(2199);
2026-07-20 16:05:17 +00:00
if (someResult) {
2026-07-23 10:11:24 +00:00
let stringResult = string(tmp14["8vDHRq"]);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
stringResult = string(tmp14["4z9fN+"]);
2026-07-20 16:05:17 +00:00
}
obj2.children = stringResult;
2026-07-28 08:39:19 +00:00
obj.trailing = jsx(require(4161) /* Text */.Text, { variant: "text-sm/medium", color: "text-muted" });
2026-07-20 16:05:17 +00:00
return obj;
}
};