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

export type PlaneIconProps = 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 PlaneIcon = ({ title, size, color, ...props }: PlaneIconProps) => {
  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="M6.75 16.125a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0m12.625 0a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0" /><path d="M9.765 16.75v1.5H8.75v-1.5zm1.485 0v1.5h-1.015v-1.5zm2.515 0v1.5H12.75v-1.5zm1.485 0v1.5h-1.015v-1.5zM15 11.375a3.125 3.125 0 1 0-6.25 0 3.125 3.125 0 0 0 6.25 0m-3.125-2.52a2.81 2.81 0 0 1 1.664.54l-.889 1.21a1.306 1.306 0 0 0-.775-.25 1.3 1.3 0 0 0-.775.25l-.89-1.21a2.806 2.806 0 0 1 1.665-.54m4.625 2.52c0 .572-.104 1.12-.294 1.625H22v1.5h-6.716a4.612 4.612 0 0 1-3.409 1.5 4.612 4.612 0 0 1-3.41-1.5H2V13h5.544a4.625 4.625 0 0 1 3.706-6.207V5h1.5v1.833a4.626 4.626 0 0 1 3.75 4.542" /></svg>
  );
};