2026-06-29 05:38:21 +02:00
|
|
|
import { clsx, type ClassValue } from "clsx";
|
|
|
|
|
import { twMerge } from "tailwind-merge";
|
2026-05-02 03:18:47 +02:00
|
|
|
|
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
2026-06-29 05:38:21 +02:00
|
|
|
return twMerge(clsx(inputs));
|
2026-05-02 03:18:47 +02:00
|
|
|
}
|
2026-07-11 07:41:15 +02:00
|
|
|
|
|
|
|
|
// Absolute inline timestamp shown alongside relative "Xm ago" text — e.g.
|
|
|
|
|
// "Jul 10, 2026, 3:45 PM". Shared so progress updates and checkpoints render
|
|
|
|
|
// the same format instead of each screen inventing its own.
|
|
|
|
|
export function formatAbsoluteTimestamp(timestamp: string): string {
|
|
|
|
|
return new Date(timestamp).toLocaleString("en-US", {
|
|
|
|
|
year: "numeric",
|
|
|
|
|
month: "short",
|
|
|
|
|
day: "numeric",
|
|
|
|
|
hour: "2-digit",
|
|
|
|
|
minute: "2-digit",
|
|
|
|
|
});
|
|
|
|
|
}
|