16 lines
411 B
TypeScript
16 lines
411 B
TypeScript
import { createDefine } from "fresh";
|
|
import { type ClassValue, clsx } from "clsx";
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
|
|
// This specifies the type of "ctx.state" which is used to share
|
|
// data among middlewares, layouts and routes.
|
|
export interface State {
|
|
shared: string;
|
|
}
|
|
|
|
export const define = createDefine<State>();
|