mirror of
https://github.com/khairul169/home-lab.git
synced 2025-06-18 01:29:34 +07:00
12 lines
270 B
TypeScript
12 lines
270 B
TypeScript
|
import { ClassInput, create as createTwrnc } from "twrnc";
|
||
|
|
||
|
const tw = createTwrnc(require(`../../tailwind.config.js`));
|
||
|
|
||
|
export const cn = (...args: ClassInput[]) => {
|
||
|
if (Array.isArray(args[0])) {
|
||
|
return tw.style(...args[0]);
|
||
|
}
|
||
|
|
||
|
return tw.style(...args);
|
||
|
};
|