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", ]; import { BRAND_ICON_SRC, BRAND_NAME } from "@/lib/branding"; export const getPTag = (repoId: string) => { // Try to resolve absolute URL for icon based on current location when available const origin = typeof window !== "undefined" ? window.location.origin : ""; const icon = BRAND_ICON_SRC.startsWith("http") ? BRAND_ICON_SRC : `${origin}${BRAND_ICON_SRC}`; const home = origin || "https://deepsite.hf.co"; return `
Made with ${BRAND_NAME} - 🧬 Remix