Add common formatting functions

This commit is contained in:
Eli Ribble 2026-03-22 17:21:01 +00:00
parent de0fbd7188
commit 29d98796fb
No known key found for this signature in database

4
ts/format.ts Normal file
View file

@ -0,0 +1,4 @@
export function shortAddress(a: Address): string {
if (!a) return "";
return `${a.number} ${a.street}, ${a.locality}`;
}