File size: 1,151 Bytes
1e075e6
743dad3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1e075e6
 
743dad3
 
1e075e6
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs));
}

export const COLORS = [
  "red",
  "blue",
  "green",
  "yellow",
  "purple",
  "pink",
  "gray",
];

export const getPTag = (repoId: string) => {
  const base = process.env.PUBLIC_BASE_URL || "https://omnidev.hf.co";
  return `<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="${base}/logo.svg" alt="OmniDev Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="${base}" style="color: #fff;text-decoration: underline;" target="_blank">OmniDev</a> - <a href="${base}?remix=${repoId}" style="color: #fff;text-decoration: underline;" target="_blank">Remix</a></p>`;
};

export const IS_UNLIMITED = (process.env.UNLIMITED_MODE || "").toLowerCase() === "true";
export const MAX_FREE_PROJECTS = IS_UNLIMITED ? 1000000 : 3;