decord/source/modules/polls/usePollDurationOptions.tsx
2026-08-24 06:08:38 +00:00

32 lines
1.4 KiB
TypeScript

// Module ID: 11426
// Function ID: 11427
// Name: usePollDurationOptions
// Dependencies: [7614, 1236, 2]
// Exports: default
// Module 11426 (usePollDurationOptions)
import set from "set" /* 2 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import POLL_ATTACHMENT_FOLDER from "POLL_ATTACHMENT_FOLDER" /* 7614 */;
const PollDurations = POLL_ATTACHMENT_FOLDER.PollDurations;
const result = set.fileFinishedImporting("modules/polls/usePollDurationOptions.tsx");
export default function usePollDurationOptions() {
const obj = {};
const intl = getSystemLocale.intl;
obj[PollDurations.ONE_HOUR] = intl.formatToPlainString(getSystemLocale.t["b/mgtw"], { num: 1 });
const intl2 = getSystemLocale.intl;
obj[PollDurations.FOUR_HOURS] = intl2.formatToPlainString(getSystemLocale.t["b/mgtw"], { num: 4 });
const intl3 = getSystemLocale.intl;
obj[PollDurations.EIGHT_HOURS] = intl3.formatToPlainString(getSystemLocale.t["b/mgtw"], { num: 8 });
const intl4 = getSystemLocale.intl;
obj[PollDurations.ONE_DAY] = intl4.formatToPlainString(getSystemLocale.t["b/mgtw"], { num: 24 });
const intl5 = getSystemLocale.intl;
obj[PollDurations.THREE_DAYS] = intl5.string(getSystemLocale.t.Xn5rX3);
const intl6 = getSystemLocale.intl;
obj[PollDurations.SEVEN_DAYS] = intl6.string(getSystemLocale.t["Lmq+rj"]);
const intl7 = getSystemLocale.intl;
obj[PollDurations.FOURTEEN_DAYS] = intl7.string(getSystemLocale.t["mb8A/O"]);
return Object.freeze(obj);
};