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

export type FacebookIconProps = 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 FacebookIcon = ({ title, size, color, ...props }: FacebookIconProps) => {
  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="m14.4448 13.0351.4308-2.6251H12.368v-.9284c0-1.3871.4864-1.9207 1.7451-1.9207.391 0 .7057.0106.8869.032V5.2133C14.6567 5.1065 13.8174 5 13.331 5c-2.5654 0-3.748 1.3552-3.748 4.2789V10.41H8v2.6251h1.583V19h2.7847v-5.9649z" /></svg>
  );
};