PostGen / frontend /src /utils.js
Seth
update
f80e9b3
raw
history blame
389 Bytes
import { clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs) {
return twMerge(clsx(inputs));
}
export function createPageUrl(pageName) {
const routes = {
Dashboard: '/',
Repository: '/repository',
Scheduler: '/scheduler',
PostEditor: '/post-editor',
Integrations: '/integrations',
};
return routes[pageName] || '/';
}