mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
- Full parity with shadcn/ui components and features - All 48 UI components present and updated - All 72 chart variations included - All 149 example implementations - Updated registry files for all themes - Added monorepo templates - Fixed test configurations - Updated all dependencies - Maintained Hanzo branding throughout
17 lines
431 B
JavaScript
17 lines
431 B
JavaScript
import { clsx } from "clsx";
|
|
import { twMerge } from "tailwind-merge";
|
|
export function cn(...inputs) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
export function formatDate(input) {
|
|
const date = new Date(input);
|
|
return date.toLocaleDateString("en-US", {
|
|
month: "long",
|
|
day: "numeric",
|
|
year: "numeric",
|
|
});
|
|
}
|
|
export function absoluteUrl(path) {
|
|
return `${process.env.NEXT_PUBLIC_APP_URL}${path}`;
|
|
}
|