Nexorav2 / frontend /lib /utils.ts
ChandimaPrabath's picture
v0.2.4 beta - TvShow Player Updated
5a8b2b7
raw
history blame contribute delete
354 Bytes
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export function convertMinutesToHM(minutes:number) {
const hours = Math.floor(minutes / 60);
const mins = minutes % 60;
return `${hours}h${mins.toString().padStart(2, '0')}mins`;
}