/** Inline SVGs for Notetaker settings (matches design pack). */

export function ExtIcon({ size = 14 }: { size?: number }) {
  return (
    <svg
      className={`iconSize-${size}`}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      stroke="currentColor"
      strokeWidth="2"
      strokeLinecap="round"
      strokeLinejoin="round"
      aria-hidden
    >
      <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />
      <polyline points="15 3 21 3 21 9" />
      <line x1="10" y1="14" x2="21" y2="3" />
    </svg>
  );
}

export function InfoIcon() {
  return (
    <svg
      width="12"
      height="12"
      viewBox="0 0 24 24"
      fill="none"
      stroke="currentColor"
      strokeWidth="2"
      aria-hidden
    >
      <circle cx="12" cy="12" r="10" />
      <line x1="12" y1="16" x2="12" y2="12" />
      <line x1="12" y1="8" x2="12.01" y2="8" />
    </svg>
  );
}

export function CheckPath() {
  return (
    <path d="M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z" />
  );
}

export function SwitchKnob() {
  return (
    <span className="hs-switch__knob">
      <svg className="hs-switch__check" viewBox="0 0 16 16" fill="currentColor">
        <CheckPath />
      </svg>
    </span>
  );
}

export function MeetingsIcon() {
  return (
    <svg
      width="18"
      height="18"
      viewBox="0 0 24 24"
      fill="none"
      stroke="currentColor"
      strokeWidth="2"
      strokeLinecap="round"
      strokeLinejoin="round"
      aria-hidden
    >
      <path d="m22 8-6 4 6 4V8Z" />
      <rect width="14" height="12" x="2" y="6" rx="2" />
    </svg>
  );
}

export function PhoneIcon() {
  return (
    <svg
      width="18"
      height="18"
      viewBox="0 0 24 24"
      fill="none"
      stroke="currentColor"
      strokeWidth="2"
      strokeLinecap="round"
      strokeLinejoin="round"
      aria-hidden
    >
      <path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z" />
    </svg>
  );
}

export function MobileIcon() {
  return (
    <svg
      width="18"
      height="18"
      viewBox="0 0 24 24"
      fill="none"
      stroke="currentColor"
      strokeWidth="2"
      strokeLinecap="round"
      strokeLinejoin="round"
      aria-hidden
    >
      <rect width="14" height="20" x="5" y="2" rx="2" ry="2" />
      <path d="M12 18h.01" />
    </svg>
  );
}

export function ZoomIcon() {
  return (
    <svg viewBox="0 0 32 32" width="34" height="34" fill="none" aria-hidden>
      <rect width="32" height="32" rx="7" fill="#2D8CFF" />
      <path
        d="M7 12.5C7 10.567 8.567 9 10.5 9h7C19.433 9 21 10.567 21 12.5v7c0 1.933-1.567 3.5-3.5 3.5h-7C8.567 23 7 21.433 7 19.5v-7z"
        fill="#fff"
      />
      <path d="M21 13.5l4.5-3v11l-4.5-3v-5z" fill="#fff" />
    </svg>
  );
}

export function MeetIcon() {
  return (
    <svg viewBox="0 0 32 32" width="34" height="34" aria-hidden>
      <rect width="32" height="32" rx="7" fill="#f8fafc" />
      <path d="M19 14.2v3.6l4 3.2V11l-4 3.2z" fill="#00832d" />
      <path d="M8 12.5C8 11.1 9.1 10 10.5 10H17v12h-6.5C9.1 22 8 20.9 8 19.5v-7z" fill="#0066da" />
      <path d="M17 10h2.5c1.4 0 2.5 1.1 2.5 2.5V14l-5-4z" fill="#e53935" />
      <path d="M17 22l5-4v2.5c0 1.4-1.1 2.5-2.5 2.5H17z" fill="#ffb300" />
      <path d="M17 10v12h2.5c1.4 0 2.5-1.1 2.5-2.5v-7c0-1.4-1.1-2.5-2.5-2.5H17z" fill="#00ac47" />
    </svg>
  );
}

export function TeamsIcon() {
  return (
    <svg viewBox="0 0 32 32" width="34" height="34" fill="none" aria-hidden>
      <rect width="32" height="32" rx="7" fill="#5059C9" />
      <path
        d="M19.5 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm2 2h-4a1.5 1.5 0 0 0-1.5 1.5V17c.7.4 1.5.6 2.5.6h3c1 0 1.8-.2 2.5-.6v-3.5a1.5 1.5 0 0 0-1.5-1.5z"
        fill="#E1E4F9"
      />
      <path
        d="M14 11a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5zm3 3.5v9a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 7 23.5v-9A1.5 1.5 0 0 1 8.5 13h7a1.5 1.5 0 0 1 1.5 1.5z"
        fill="#fff"
      />
      <path d="M10 16h4v2h-4v-2zm0 3h4v1.5h-4V19z" fill="#5059C9" />
    </svg>
  );
}
