"use client";
import { useId } from "react";
import { cn } from "@/lib/utils";
/**
* PolyLLM mark — "the Prism P".
* A bold P (Poly) whose bowl emits three beams of decreasing intensity: one interface, every model.
* Keep in sync with `public/icon.svg` and `scripts/brand-assets.sh` (favicon / PWA / OG renders).
*/
export function LogoMark({ className, size = 28, mono = false }: { className?: string; size?: number; mono?: boolean }) {
// Unique gradient id per instance: a duplicate id inside a `display:none` sidebar would otherwise
// win the lookup and the mark would paint black on mobile.
const uid = useId().replace(/[^a-zA-Z0-9]/g, "");
const gid = `plm-g-${uid}`;
const hid = `plm-h-${uid}`;
return (
);
}
export function Logo({ className, size = 24, wordmark = true, mono }: { className?: string; size?: number; wordmark?: boolean; mono?: boolean }) {
return (
{wordmark ? : null}
);
}
/** Text wordmark — "Poly" solid, "LLM" slightly lighter for rhythm. */
export function Wordmark({ className }: { className?: string }) {
return (
PolyLLM
);
}