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

export type PhoneIconProps = 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 PhoneIcon = ({ title, size, color, ...props }: PhoneIconProps) => {
  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="M3.015 3.014h5.743v5.493a3.247 3.247 0 0 1-3.246 3.247h-.997v1.996a5.74 5.74 0 0 0 5.74 5.74h1.746v-.747a3.247 3.247 0 0 1 3.247-3.247h5.743v5.494H10.255a7.24 7.24 0 0 1-7.24-7.24zM13.5 19.49h5.99v-2.494h-4.243c-.964 0-1.746.783-1.746 1.747v.747Zm-8.986-9.236h.997c.964 0 1.746-.783 1.746-1.747V4.514H4.515v5.74Z" clipRule="evenodd" /></svg>
  );
};