Add host setup functions and client components

This commit is contained in:
2026-09-13 10:52:30 +01:00
parent 76679aabe7
commit 86eb3a0b05
53 changed files with 1284 additions and 1325 deletions
+17
View File
@@ -0,0 +1,17 @@
type Params = {
timestamp?: number | "";
};
export default function formatUnixTimestamp({ timestamp }: Params) {
if (!timestamp) {
return "—";
}
const date = new Date(timestamp * 1000);
return date.toLocaleDateString("en-US", {
month: "short",
day: "numeric",
year: "numeric",
});
}