export const sel = (classNames: string) => classNames .split(" ") .filter(Boolean) .map((cls) => `.${cls}`) .join(""); export const injectStyles = (css: string) => { if (typeof document === "undefined") return; const style = document.createElement("style"); style.textContent = css; document.head.appendChild(style); };