Place
Where a definition runs, as a dot (and, with label, words).
export function Place({ place, label }: { place?: string; label?: boolean }) { const cls = place === "server" ? "srv" : place === "browser" ? "brw" : place ? "any" : ""; const words = place === "server" ? "runs on the server" : place === "browser" ? "runs in the browser" : "runs anywhere"; const dot = <span className={`dot ${cls}`} title={place ? words : undefined} />; return label && place ? ( <span className="chip"> {dot} {words} </span> ) : ( dot ); }