import type { SVGProps } from "react";

/**
 * The two send glyphs the request overlay's design uses, inlined.
 *
 * The design draws these with Bootstrap Icons — `bi-send-check` on the header
 * tile and `bi-send` on the submit button (see the design prototype's
 * employee-request-flight.php). Both are *filled* paper planes tilted up and to
 * the right; lucide's `Send` is a stroked outline, and it has no send-with-check
 * glyph at all, so the header icon in particular cannot be expressed in the
 * house icon set.
 *
 * Inlined rather than pulled in as a dependency: this is two path definitions
 * used on one screen, and adding `bootstrap-icons` for them would put a second
 * icon library in the bundle — which is exactly what the project's icon rule is
 * there to prevent. lucide stays the icon set for everything else.
 *
 * Paths are verbatim from bootstrap-icons 1.13.1 (MIT), viewBox 0 0 16 16.
 * `fill="currentColor"` so they take their colour from the surrounding text,
 * the same as every lucide icon here.
 */

/** `bi-send-check` — a paper plane with a confirmation tick. Header tile. */
export function SendCheckIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      viewBox="0 0 16 16"
      fill="currentColor"
      aria-hidden="true"
      focusable="false"
      {...props}
    >
      <path d="M15.964.686a.5.5 0 0 0-.65-.65L.767 5.855a.75.75 0 0 0-.124 1.329l4.995 3.178 1.531 2.406a.5.5 0 0 0 .844-.536L6.637 10.07l7.494-7.494-1.895 4.738a.5.5 0 1 0 .928.372zm-2.54 1.183L5.93 9.363 1.591 6.602z" />
      <path d="M16 12.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0m-1.993-1.679a.5.5 0 0 0-.686.172l-1.17 1.95-.547-.547a.5.5 0 0 0-.708.708l.774.773a.75.75 0 0 0 1.174-.144l1.335-2.226a.5.5 0 0 0-.172-.686" />
    </svg>
  );
}

/** `bi-send` — a plain paper plane. Submit button. */
export function SendIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      viewBox="0 0 16 16"
      fill="currentColor"
      aria-hidden="true"
      focusable="false"
      {...props}
    >
      <path d="M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576zm6.787-8.201L1.591 6.602l4.339 2.76z" />
    </svg>
  );
}
