add last updated to mojang status embed
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m38s

This commit is contained in:
Lee
2024-04-17 17:33:12 +01:00
parent fd950efa17
commit 5217ee4aab
5 changed files with 30 additions and 3 deletions

11
src/common/time-utils.ts Normal file
View File

@ -0,0 +1,11 @@
import moment from "moment";
/**
* Formats the time
*
* @param time the time to format
* @returns the formatted time
*/
export function formatTime(time: Date): string {
return moment(time).format("lll");
}

View File

@ -1,6 +1,12 @@
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
/**
* Merge class values together
*
* @param inputs the class values
* @returns the merged class values
*/
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
return twMerge(clsx(inputs));
}