// icons.jsx — shared inline icon set. Exposes window.Ico.
// Loaded before app.jsx and sheets.jsx, which both do `const Ico = window.Ico`.
window.Ico = {
  check: (c, s = 13) => (
    <svg width={s} height={s} viewBox="0 0 14 14" fill="none" stroke={c} strokeWidth="2.4" strokeLinecap="round" strokeLinejoin="round"><path d="M2.5 7.5l3 3 6-7" /></svg>
  ),
  plus: (c, s = 14) => (
    <svg width={s} height={s} viewBox="0 0 14 14" fill="none" stroke={c} strokeWidth="2" strokeLinecap="round"><path d="M7 2v10M2 7h10" /></svg>
  ),
  minus: (c, s = 14) => (
    <svg width={s} height={s} viewBox="0 0 14 14" fill="none" stroke={c} strokeWidth="2" strokeLinecap="round"><path d="M2 7h10" /></svg>
  ),
  x: (c, s = 12) => (
    <svg width={s} height={s} viewBox="0 0 12 12" fill="none" stroke={c} strokeWidth="1.9" strokeLinecap="round"><path d="M3 3l6 6M9 3l-6 6" /></svg>
  ),
  sort: (c, s = 14) => (
    <svg width={s} height={s} viewBox="0 0 16 16" fill="none" stroke={c} strokeWidth="1.7" strokeLinecap="round"><path d="M3 4h10M3 8h6M3 12h3" /></svg>
  ),
  chevron: (c, s = 12) => (
    <svg width={s} height={s} viewBox="0 0 12 12" fill="none" stroke={c} strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"><path d="M3 4.5l3 3 3-3" /></svg>
  ),
  search: (c, s = 15) => (
    <svg width={s} height={s} viewBox="0 0 16 16" fill="none" stroke={c} strokeWidth="1.7" strokeLinecap="round"><circle cx="7" cy="7" r="4.3" /><path d="M10.5 10.5L14 14" /></svg>
  ),
  grip: (c, s = 16) => (
    <svg width={s} height={s} viewBox="0 0 16 16" fill={c}><circle cx="6" cy="4" r="1.3" /><circle cx="10" cy="4" r="1.3" /><circle cx="6" cy="8" r="1.3" /><circle cx="10" cy="8" r="1.3" /><circle cx="6" cy="12" r="1.3" /><circle cx="10" cy="12" r="1.3" /></svg>
  ),
  share: (c, s = 16) => (
    <svg width={s} height={s} viewBox="0 0 16 16" fill="none" stroke={c} strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round"><circle cx="12" cy="3.5" r="2" /><circle cx="4" cy="8" r="2" /><circle cx="12" cy="12.5" r="2" /><path d="M5.8 7l4.4-2.4M5.8 9l4.4 2.4" /></svg>
  ),
  link: (c, s = 16) => (
    <svg width={s} height={s} viewBox="0 0 16 16" fill="none" stroke={c} strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round"><path d="M6.5 9.5l3-3M7 4.5l.8-.8a2.5 2.5 0 013.5 3.5l-.8.8M9 11.5l-.8.8a2.5 2.5 0 01-3.5-3.5l.8-.8" /></svg>
  ),
  users: (c, s = 16) => (
    <svg width={s} height={s} viewBox="0 0 16 16" fill="none" stroke={c} strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"><circle cx="6" cy="5" r="2.4" /><path d="M2 13c0-2.2 1.8-3.6 4-3.6S10 10.8 10 13" /><path d="M10.5 3.2a2.4 2.4 0 010 4.6M11.2 9.6c1.7.3 2.8 1.6 2.8 3.4" /></svg>
  ),
  trash: (c, s = 15) => (
    <svg width={s} height={s} viewBox="0 0 16 16" fill="none" stroke={c} strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round"><path d="M2.5 4h11M6 4V2.8c0-.4.3-.8.8-.8h2.4c.5 0 .8.4.8.8V4M4 4l.6 8.4c0 .6.5 1.1 1.1 1.1h4.6c.6 0 1.1-.5 1.1-1.1L12 4M6.5 7v4M9.5 7v4" /></svg>
  ),
  pencil: (c, s = 15) => (
    <svg width={s} height={s} viewBox="0 0 16 16" fill="none" stroke={c} strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round"><path d="M10.5 2.8l2.7 2.7M11.7 1.6a1.3 1.3 0 011.9 0l.8.8a1.3 1.3 0 010 1.9L5.4 13 2 14l1-3.4z" /></svg>
  ),
  note: (c, s = 15) => (
    <svg width={s} height={s} viewBox="0 0 16 16" fill="none" stroke={c} strokeWidth="1.6" strokeLinecap="round"><path d="M3 4h10M3 8h10M3 12h6" /></svg>
  ),
  dots: (c, s = 16) => (
    <svg width={s} height={s} viewBox="0 0 16 16" fill={c}><circle cx="8" cy="3.2" r="1.5" /><circle cx="8" cy="8" r="1.5" /><circle cx="8" cy="12.8" r="1.5" /></svg>
  ),
  undo: (c, s = 15) => (
    <svg width={s} height={s} viewBox="0 0 16 16" fill="none" stroke={c} strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round"><path d="M3 8a5 5 0 105-5 5 5 0 00-4 2M3 2v3h3" /></svg>
  ),
  back: (c, s = 16) => (
    <svg width={s} height={s} viewBox="0 0 16 16" fill="none" stroke={c} strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"><path d="M10 3l-5 5 5 5" /></svg>
  ),
  gear: (c, s = 18) => (
    <svg width={s} height={s} viewBox="0 0 18 18" fill="none" stroke={c} strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"><circle cx="9" cy="9" r="2.4" /><path d="M9 1.4l1 .05.5 1.9 1.3.55 1.7-1 1.4 1.4-1 1.7.55 1.3 1.9.5v2l-1.9.5-.55 1.3 1 1.7-1.4 1.4-1.7-1-1.3.55-.5 1.9h-2l-.5-1.9-1.3-.55-1.7 1-1.4-1.4 1-1.7L2.45 11l-1.9-.5v-2l1.9-.5.55-1.3-1-1.7 1.4-1.4 1.7 1 1.3-.55.5-1.9z" /></svg>
  ),
};
