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

export type OpenInPhoneIconProps = 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 OpenInPhoneIcon = ({ title, size, color, ...props }: OpenInPhoneIconProps) => {
  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 fillRule="evenodd" d="M10.505 4.514c-.964 0-1.747.783-1.747 1.747v3.245h-1.5V6.261a3.247 3.247 0 0 1 3.247-3.247h4.992a3.247 3.247 0 0 1 3.247 3.247v11.483a3.247 3.247 0 0 1-3.247 3.246h-4.992a3.247 3.247 0 0 1-3.247-3.246v-3.245h1.5v3.245c0 .964.783 1.746 1.747 1.746h4.992c.964 0 1.747-.782 1.747-1.746V6.261c0-.964-.783-1.747-1.747-1.747zm1.204 3.463 4.1 4.1-4.105 4.1-1.06-1.06 2.293-2.29-8.923-.005v-1.5l8.923.004-2.289-2.288 1.06-1.06Z" clipRule="evenodd" /></svg>
  );
};