add last updated to mojang status embed
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m38s
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m38s
This commit is contained in:
11
src/common/time-utils.ts
Normal file
11
src/common/time-utils.ts
Normal 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");
|
||||
}
|
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user