// @ts-check // The few drawn icons the app uses, as inline SVG in the text's color. Drawn rather than taken from // a font, so there's no glyph a phone can lack; each button carrying one says its words to a // screen reader. import { html } from "./html.js"; /** @typedef {"send" | "stop" | "attach" | "close" | "dock" | "menu"} IconName */ const STROKE = { fill: "none", stroke: "currentColor", "stroke-width": "2.2", "stroke-linecap": "round", "stroke-linejoin": "round" }; /** @type {Record unknown>} */ const DRAWINGS = { send: () => html``, stop: () => html``, // a paperclip, tilted as one lies on a desk: attaching reads quicker than a picture of a photo attach: () => html``, close: () => html``, dock: () => html``, menu: () => html``, }; /** One icon, sized to the line it sits in. @param {{ name: IconName }} props */ export function Icon({ name }) { return html``; }