import { clsx, type ClassValue } from "clsx" import { twMerge } from "tailwind-merge" export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)) } export const stripHtml = (html: string) => { return (html || "").replace(/<[^>]*>?/gm, '').trim(); }; export const copyToClipboard = async (text: string): Promise => { try { await navigator.clipboard.writeText(text); return true; } catch (error) { console.error("Copy error:", error); return false; } };