/* blueyetutor — inline SVG icon set.
 * Stroke-based, 1.5px, 14×14 default. Stroke=currentColor so icons inherit
 * whatever color the surrounding text has — keep `color: var(--navy)` on
 * the parent if you want navy.
 *
 * Replaces every emoji used previously (📤 📚 📘 📜 👥 📕 📄 🗑 ✅ ⬜ etc).
 */

const SvgBase = ({ size, children, className }) => (
  <svg
    className={"ic " + (className || "") + (size === "lg" ? " ic-lg" : size === "sm" ? " ic-sm" : "")}
    viewBox="0 0 24 24"
    xmlns="http://www.w3.org/2000/svg"
  >{children}</svg>
);

const Icon = {
  Upload:   (p) => <SvgBase {...p}><path d="M12 16V4m0 0l-4 4m4-4l4 4M4 20h16" /></SvgBase>,
  Library:  (p) => <SvgBase {...p}><path d="M4 5v14M9 5v14M14 6l4 14M14 6l-1 0M14 6l5-1" /></SvgBase>,
  Workbook: (p) => <SvgBase {...p}><path d="M5 4h11a3 3 0 013 3v13M5 4v15a2 2 0 002 2h12M5 4a2 2 0 00-2 2v0a2 2 0 002 2M9 8h6M9 12h6" /></SvgBase>,
  History:  (p) => <SvgBase {...p}><path d="M3 12a9 9 0 1 0 3-6.7M3 4v4h4M12 7v5l3 2" /></SvgBase>,
  Students: (p) => <SvgBase {...p}><path d="M16 11a3 3 0 1 0-6 0M19 21a6 6 0 0 0-12 0M21 11a3 3 0 1 0-2-5M21 21a6 6 0 0 0-3-5M3 21a6 6 0 0 1 3-5M3 11a3 3 0 1 1 2-5" /></SvgBase>,

  File:     (p) => <SvgBase {...p}><path d="M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9l-6-6zM14 3v6h6" /></SvgBase>,
  Download: (p) => <SvgBase {...p}><path d="M12 4v12m0 0l-4-4m4 4l4-4M4 20h16" /></SvgBase>,
  Trash:    (p) => <SvgBase {...p}><path d="M4 7h16M9 7V4h6v3M6 7l1 13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-13M10 11v6M14 11v6" /></SvgBase>,
  Plus:     (p) => <SvgBase {...p}><path d="M12 5v14M5 12h14" /></SvgBase>,
  Close:    (p) => <SvgBase {...p}><path d="M6 6l12 12M18 6L6 18" /></SvgBase>,
  Check:    (p) => <SvgBase {...p}><path d="M5 12l5 5L20 7" /></SvgBase>,
  Edit:     (p) => <SvgBase {...p}><path d="M12 20h8M4 20l4-1L20 7l-3-3L5 16l-1 4z" /></SvgBase>,
  Save:     (p) => <SvgBase {...p}><path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2zM7 3v5h8V3M7 21v-8h10v8" /></SvgBase>,
  Stop:     (p) => <SvgBase {...p}><rect x="6" y="6" width="12" height="12" rx="1" /></SvgBase>,
  ChevDown: (p) => <SvgBase {...p}><path d="M6 9l6 6 6-6" /></SvgBase>,
  ChevRight:(p) => <SvgBase {...p}><path d="M9 6l6 6-6 6" /></SvgBase>,
  Key:      (p) => <SvgBase {...p}><circle cx="8" cy="15" r="4" /><path d="M11 12l8-8M16 7l3 3" /></SvgBase>,
  Tag:      (p) => <SvgBase {...p}><path d="M3 12l9 9 8-8a3 3 0 0 0 0-4l-5-5a3 3 0 0 0-4 0L3 12z" /><circle cx="9" cy="9" r="1" /></SvgBase>,
  Wand:     (p) => <SvgBase {...p}><path d="M3 21l9-9M14 4l1 3 3 1-3 1-1 3-1-3-3-1 3-1zM19 11l.5 1.5 1.5.5-1.5.5-.5 1.5-.5-1.5-1.5-.5 1.5-.5z" /></SvgBase>,
  Folder:   (p) => <SvgBase {...p}><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7z" /></SvgBase>,
  Target:   (p) => <SvgBase {...p}><circle cx="12" cy="12" r="9" /><circle cx="12" cy="12" r="5" /><circle cx="12" cy="12" r="1" /></SvgBase>,
  Notebook: (p) => <SvgBase {...p}><path d="M5 4h13a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5zM8 4v16M5 8h3M5 12h3M5 16h3" /></SvgBase>,
  Info:     (p) => <SvgBase {...p}><circle cx="12" cy="12" r="9" /><path d="M12 16v-5M12 8h.01" /></SvgBase>,
  Search:   (p) => <SvgBase {...p}><circle cx="11" cy="11" r="7" /><path d="M21 21l-4.3-4.3" /></SvgBase>,
  Expand:   (p) => <SvgBase {...p}><path d="M9 4H4v5M15 4h5v5M15 20h5v-5M9 20H4v-5" /></SvgBase>,
};

Object.assign(window, { Icon });
