"use client"; import { useId } from "react"; export type DockSymbol = "home" | "about" | "portfolio" | "products" | "contact"; /** * macOS Big Sur–style squircle app icon, drawn entirely in SVG so it stays * crisp at every magnification step. Inactive icons use a neutral graphite * gradient; the active icon lights up in the brand coral. */ export function DockAppIcon({ symbol, active = false, disabled = false, }: { symbol: DockSymbol; active?: boolean; disabled?: boolean; }) { const uid = useId().replace(/[:]/g, ""); const bg = `bg-${uid}`; const gloss = `gloss-${uid}`; return ( {active ? ( <> ) : ( <> )} {/* tile */} {/* symbol */} {symbol === "home" && ( <> )} {symbol === "about" && ( <> )} {symbol === "contact" && ( <> )} {/* filled symbols */} {symbol === "portfolio" && ( )} {symbol === "products" && ( )} ); }