Download frontend/src/utils.js from raahinaez/PostGen2: direct link, hf CLI and curl.
- Browser
- Download file 389 Bytes
-
https://huggingface.co/spaces/raahinaez/PostGen2/resolve/main/frontend/src/utils.js
- Command line
-
hf download hf://spaces/raahinaez/PostGen2/frontend/src/utils.js
-
curl -L -o utils.js https://huggingface.co/spaces/raahinaez/PostGen2/resolve/main/frontend/src/utils.js
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] || '/'; | |
| } | |