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

export type PaintBrushIconProps = 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 PaintBrushIcon = ({ title, size, color, ...props }: PaintBrushIconProps) => {
  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="M13.04 14.548a3.042 3.042 0 0 0-3.044-3.044 3.043 3.043 0 0 0-3.045 3.044v2.532c0 .908-.31 1.746-.832 2.41H8.1a4.94 4.94 0 0 0 4.941-4.942Zm-1.007-4.062a4.56 4.56 0 0 1 1.613 1.353l.564-.563-1.483-1.484zm2.507 4.062a6.44 6.44 0 0 1-6.441 6.443H3.04v-1.5a2.411 2.411 0 0 0 2.41-2.411v-2.532a4.543 4.543 0 0 1 4.926-4.527l7.287-7.286 1.06 1.06-4.937 4.937 1.483 1.483 4.94-4.94 1.06 1.061-6.918 6.918c.122.41.188.845.188 1.294Z" /></svg>
  );
};