'use client'; /** * Near-opaque, corner-anchored legend for 3D viewer overlays * (pLDDT key, interaction color key). Small, minimal, never obscuring * the model. */ interface HudLegendProps { title?: string; children: React.ReactNode; className?: string; } export function HudLegend({ title, children, className = '' }: HudLegendProps) { return (
{title && (

{title}

)}
{children}
); } export function LegendItem({ color, label, }: { color: string; label: string; }) { return ( {label} ); }