This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,20 @@
// Metro module 16114 (f16115).
import UserStore from "../../../stores/UserStore";
import { intl } from "../../../intl/index.native";
import { useStateFromStores } from "../../../_bundle/Module589";
export default function useFormattedEndTime() {
return useStateFromStores([UserStore], () => {
const currentUser = UserStore.getCurrentUser();
const r1 = currentUser == null;
let r5 = void 0;
if (!r1) {
const restrictedSchedule = currentUser.restrictedSchedule;
r5 = restrictedSchedule == null ? void 0 : restrictedSchedule.getNextEndTime();
}
return r5 == null ? null : new Intl.DateTimeFormat(intl.currentLocale, {
hour: "numeric",
minute: "2-digit",
weekday: "long"
}).format(r5);
});
};