mirror of
https://github.com/backnotprop/plannotator.git
synced 2026-09-14 14:17:26 +08:00
c23df4db43
Extracts the UI 2.0 visual refresh and the HTML-render annotate feature onto main, standalone (no daemon). Faithful copy of feat's UI/HTML logic with the standalone transport kept.
12 lines
373 B
TypeScript
12 lines
373 B
TypeScript
import { type ClassValue, clsx } from "clsx";
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
/**
|
|
* Merge class names with Tailwind-aware conflict resolution.
|
|
* `clsx` handles conditionals/arrays; `twMerge` dedupes conflicting utilities
|
|
* (so a later `bg-*` wins over an earlier one, etc.).
|
|
*/
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|