diff options
| author | Sebastien Castiel <sebastien@castiel.me> | 2023-12-06 12:22:24 -0500 |
|---|---|---|
| committer | Sebastien Castiel <sebastien@castiel.me> | 2023-12-06 12:22:24 -0500 |
| commit | 6c4ced0f79f801d85da5e4973ae4154f01b04dba (patch) | |
| tree | dbb8eab58ef6d3e8cec6f3c7187e2a4596134d4a /src/lib/utils.ts | |
| parent | ed55c696cd083bfaa5429082a9c5edd4ebde0cd8 (diff) | |
Loading screens & layouts
Diffstat (limited to 'src/lib/utils.ts')
| -rw-r--r-- | src/lib/utils.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/utils.ts b/src/lib/utils.ts index ec79801..502daf3 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -1,6 +1,10 @@ -import { type ClassValue, clsx } from "clsx" -import { twMerge } from "tailwind-merge" - +import { clsx, type ClassValue } from 'clsx' +import { twMerge } from 'tailwind-merge' + export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)) } + +export function delay(ms: number) { + return new Promise((resolve) => setTimeout(resolve, ms)) +} |
