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

export type ArrivalIconProps = 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 ArrivalIcon = ({ title, size, color, ...props }: ArrivalIconProps) => {
  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="M22 18.5V20H2v-1.5zM11.832 4.025l.75.198 4.176 7.746 2.707.69a2.653 2.653 0 0 1 1.842 3.462l-.002.007c-.483 1.32-1.913 1.964-3.205 1.642l-9.64-2.245-.132-.03-.112-.075L3.5 12.295l-.026-.017-.025-.02a2.506 2.506 0 0 1-.877-2.582v-.002l.958-3.745.718.172.23.054.31.074.161.273 1.72 2.902 2.828.719L11.1 3.831zm-1.25 7.921L6 10.782l-.302-.077-.158-.268-1.128-1.9-.386 1.507c-.096.378.039.78.343 1.027l4.562 3.024 9.51 2.215.007.002.007.002c.623.159 1.245-.168 1.44-.702a1.153 1.153 0 0 0-.8-1.5l-3.344-.851-3.74-6.933z" /></svg>
  );
};