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

+32
View File
@@ -0,0 +1,32 @@
// Metro module 10257 (f10258).
import { intl } from "../../intl/index.native";
export function getStatusExpiryParts(a0) {
const date = new Date(Number(a0));
const date2 = new Date();
const r1 = date.getFullYear() === date2.getFullYear() && date.getMonth() === date2.getMonth() && date.getDate() === date2.getDate();
const date3 = new Date();
date3.setDate(date3.getDate() + 1);
const r2 = date.getFullYear() === date3.getFullYear() && date.getMonth() === date3.getMonth() && date.getDate() === date3.getDate();
const timeString = intl.data.formatTime(date, {
format: "short"
});
return r1 ? {
kind: "today",
dateString: intl.data.formatRelativeTime(0, "day", {
numeric: "auto"
}),
timeString
} : r2 ? {
kind: "tomorrow",
dateString: intl.data.formatRelativeTime(1, "day", {
numeric: "auto"
}),
timeString
} : {
kind: "date",
dateString: intl.data.formatDate(date, {
dateStyle: "short"
}),
timeString
};
}