2026-08-25 06:04:03 +00:00
|
|
|
// Module ID: 11782
|
|
|
|
|
// Function ID: 11783
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: usePollDurationOptions
|
2026-08-25 06:04:03 +00:00
|
|
|
// Dependencies: [7432, 1236, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-25 06:04:03 +00:00
|
|
|
// Module 11782 (usePollDurationOptions)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
|
|
|
|
import getSystemLocale from "getSystemLocale" /* 1236 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
import POLL_ATTACHMENT_FOLDER from "POLL_ATTACHMENT_FOLDER" /* 7432 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
const PollDurations = POLL_ATTACHMENT_FOLDER.PollDurations;
|
|
|
|
|
const result = set.fileFinishedImporting("modules/polls/usePollDurationOptions.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function usePollDurationOptions() {
|
|
|
|
|
const obj = {};
|
2026-08-24 06:08:38 +00:00
|
|
|
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"]);
|
2026-07-20 16:05:17 +00:00
|
|
|
return Object.freeze(obj);
|
|
|
|
|
};
|