Add mailer API and initial mailer view

This commit is contained in:
Eli Ribble 2026-04-21 19:19:39 +00:00
parent 0d8d7f3aeb
commit eb27af7d90
No known key found for this signature in database
10 changed files with 479 additions and 0 deletions

View file

@ -24,6 +24,16 @@ export function formatBigNumber(n: number): string {
return result;
}
export function formatDate(date: Date): string {
return new Intl.DateTimeFormat("en-US", {
year: "numeric",
month: "short",
day: "numeric",
hour: "2-digit",
minute: "2-digit",
}).format(date);
}
export function formatDistance(meters: number | undefined) {
if (meters === undefined || meters === null) {
return "unknown";