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

export type FontPenIconProps = 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 FontPenIcon = ({ title, size, color, ...props }: FontPenIconProps) => {
  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="m17.85 4.13-4.083 4.082 1.94 1.94 4.083-4.081 1.06 1.06-6.36 6.36-.368.368-1.331 4.895-.427.108-9.63 2.41 2.511-10.063 4.667-1.263L16.79 3.07l1.062 1.06ZM6.488 12.427l-1.34 5.37 2.64-2.64a1.4 1.4 0 0 1-.022-.143l-.007-.14.007-.141a1.374 1.374 0 0 1 1.367-1.234l.14.007a1.375 1.375 0 1 1-.425 2.712L6.21 18.855l5.364-1.342 1.234-4.534-1.779-1.781-4.542 1.229ZM12.02 9.96l1.94 1.94.686-.687-1.94-1.94z" /></svg>
  );
};