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

export type LinkedinIconProps = 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 LinkedinIcon = ({ title, size, color, ...props }: LinkedinIconProps) => {
  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="M12 22.5c5.799 0 10.5-4.701 10.5-10.5S17.799 1.5 12 1.5 1.5 6.201 1.5 12 6.201 22.5 12 22.5m0 1.5c6.6274 0 12-5.3726 12-12S18.6274 0 12 0 0 5.3726 0 12s5.3726 12 12 12" clipRule="evenodd" /><path d="M7.3797 8.7804c.762 0 1.3797-.6224 1.3797-1.3902S8.1417 6 7.3797 6 6 6.6224 6 7.3902s.6177 1.3902 1.3797 1.3902m7.1747.77c-.9764 0-1.6556.385-2.2288 1.1549v2.9088c0-.6417.0214-2.0105 1.401-2.0105 1.146-.0214 1.2309 1.0694 1.2309 1.7538V17.25H17.25v-3.8926c0-1.4971-.0211-3.807-2.6956-3.807m-8.2997.2139h2.2925V17.25H6.2547zm3.7783 0h2.2925V17.25H10.033z" /></svg>
  );
};