import { useId, type SVGProps } from 'react';

export type FlightIconProps = SVGProps<SVGSVGElement> & {
  /** Accessibility title for the icon, set aria-hidden="true" if the icon is purely decorative. */
  title?: string;
  /**
   * The size of the icon.
   * It sets the font-size, possible as the width and height is `1em`. If not set, the icon will inherit the font size of its parent.
   */
  size?: '2xl' | 'xl' | 'large' | 'medium' | 'small';
  /**
   * The color of the icon.
   * @default 'inherit'
   */
  color?: 'inherit' | 'primary' | 'gray' | 'black' | 'white';
};

export const FlightIcon = ({ title, size, color, ...props }: FlightIconProps) => {
  const titleId = useId();
  return (
    <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" focusable='false' role='img' width='1em' height='1em'  aria-labelledby={title ? titleId : undefined} data-size={size} data-color={color} {...props}>{title ? <title id={titleId}>{title}</title> : null}<path d="M16.52 4.055a2.754 2.754 0 0 1 3.89 0 2.754 2.754 0 0 1 .002 3.888L17.49 10.86l2.615 7.72-2.578 2.586-4.2-6.142-1.665 1.667.906 2.722-.328.327-1.91 1.91-3.151-4.698-4.37-2.794 1.926-1.92.328-.326 2.7.9 1.677-1.678-6.146-4.2L5.88 4.355l7.724 2.615zm2.83 1.06a1.254 1.254 0 0 0-1.77 0L14.006 8.69 6.279 6.074l-.643.642 6.143 4.2L8.495 14.2l-.327.328-.44-.146-2.262-.755-.275.274 2.928 1.872.132.084 2.308 3.443.293-.293-.758-2.28-.147-.439 3.596-3.604 4.2 6.14.642-.644-2.465-7.28-.15-.441 3.58-3.575a1.253 1.253 0 0 0 0-1.769" /></svg>
  );
};