// Small inline-SVG icons shared across pages — deliberately NOT emoji // glyphs for a trigger button's own icon. mara, live, on swarm-ui's // original links/settings buttons: "links and settings icon styles // different / all different sizes" — an emoji glyph renders via the // OS/browser's colour-emoji font at that font's own fixed metrics, // ignoring `font-size`/`color`, so it can never match a neighbouring // icon in size or weight on any platform (and some codepoints, like the // gear `⚙`, aren't even reliably covered by every font — showing as a // missing-glyph box or an oddly-weighted fallback depending on what's // installed). Same `stroke`/`viewBox`/size shape for every icon here so // they read as one rendering path wherever they're mounted — Feather/ // lucide-style line icons, `currentColor` stroke so they pick up // whatever text colour the surrounding `Badge`/button already has. // // Shared here so `SettingsMenu`, `LinksMenu` and the swarm UI's shell draw the // settings gear and the link chain from one place. import type { ComponentChildren } from "preact"; export function GearIcon() { return ( ); } export function LinkIcon() { return ( ); } // Four corner-arrows, the standard "expand to fullscreen" glyph — added // for the terminal-preview-to-full-tab trigger (`AgentTermPreview`'s own // expand affordance). Same size/stroke recipe as `LinkIcon`/`GearIcon` // above, not a smaller variant like `FilterIcon` — this one sits as a // standalone `Badge` trigger, not inside a table header cell. export function ExpandIcon() { return ( ); } // A cross, for an icon-only close trigger (a pane's "take this out of the // group"). Same size and stroke as `ExpandIcon`. export function CloseIcon() { return ( ); } // A funnel, the standard "filter" glyph — smaller than the other two // (1em not 1.3em) since its first caller sits inside a table header // cell, not a nav trigger button; scale via the caller's own // `font-size` like the others rather than a hardcoded size prop, same // reasoning as `GearIcon`/`LinkIcon` above (`currentColor` stroke). export function FilterIcon() { return ( ); } // A prompt in a window (`>_`), the standard "terminal" glyph — the agent // card's shortcut to the agent's terminal tab. Same recipe as `LinkIcon`. export function TerminalIcon() { return ( ); } /** An arrow pointing up, for a send button: the message goes up into the terminal. */ export function SendIcon() { return ( ); } // The shared recipe of the line icons below: a 24-unit box, round strokes in // the text colour, so each reads as part of the same family. function LineIcon({ children }: { children: ComponentChildren }) { return ( ); } /** A chip with pins: the model an agent runs on. */ export function ChipIcon() { return ( ); } /** A dial: how full the context window is. */ export function GaugeIcon() { return ( ); } /** One node branching into two: the subagents an agent started. */ export function SubagentsIcon() { return ( ); } /** Six dots in two columns: the handle of something that can be dragged. */ export function GripIcon() { return ( ); } // An arrow pointing down at a line, for "scroll to the end". Same size and // stroke as `ExpandIcon`. export function ArrowDownIcon() { return ( ); }