31 lines
798 B
TypeScript
31 lines
798 B
TypeScript
// Metro module 7999 (f8000).
|
|
import Module3771 from "../../../_bundle/Module3771";
|
|
import { intl, t } from "../../../intl/index.native";
|
|
const formatExpirationLabel = function formatExpirationLabel(expiry) {
|
|
const r7 = Module3771();
|
|
if (expiry <= r7) {
|
|
return void 0;
|
|
}
|
|
const days = expiry.diff(r7, "days");
|
|
if (days > 1) {
|
|
return intl.formatToPlainString(t.dex68a, {
|
|
days
|
|
});
|
|
}
|
|
const hours = expiry.diff(r7, "hours");
|
|
if (hours > 1) {
|
|
return intl.formatToPlainString(t.BWqf0c, {
|
|
hours
|
|
});
|
|
}
|
|
return intl.formatToPlainString(t["3SLXAz"], {
|
|
minutes: expiry.diff(r7, "minutes")
|
|
});
|
|
};
|
|
export default function useFormattedExpirationLabel(a0) {
|
|
if (a0 != null) {
|
|
return formatExpirationLabel(a0);
|
|
}
|
|
};
|
|
export { formatExpirationLabel };
|