diff options
| author | Max Nanis | 2025-06-06 16:32:17 +0700 |
|---|---|---|
| committer | Max Nanis | 2025-06-06 16:32:17 +0700 |
| commit | 696dee6a6a9506fcf771d0ec4911dcc82a279fda (patch) | |
| tree | 3e8d0bde7cded0f3e1fba82e3af1f2253c06bcbf /src/lib | |
| parent | 2f675eecec576b1ab17260e2513e1eec187a81d2 (diff) | |
| download | panel-ui-696dee6a6a9506fcf771d0ec4911dcc82a279fda.tar.gz panel-ui-696dee6a6a9506fcf771d0ec4911dcc82a279fda.zip | |
Lots of reducer work to organize active Question in redux state (rather than useState). Various UX/CSS checks for Pagination state.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/utils.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/utils.ts b/src/lib/utils.ts index bd0c391..8525468 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -1,6 +1,12 @@ -import { clsx, type ClassValue } from "clsx" -import { twMerge } from "tailwind-merge" +import {type ClassValue, clsx} from "clsx" +import {twMerge} from "tailwind-merge" export function cn(...inputs: ClassValue[]) { - return twMerge(clsx(inputs)) + return twMerge(clsx(inputs)) } + +export function assert(condition: any, msg?: string): asserts condition { + if (!condition) { + throw new Error(msg); + } +}
\ No newline at end of file |
