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

export type ConstructionIconProps = 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 ConstructionIcon = ({ title, size, color, ...props }: ConstructionIconProps) => {
  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="M18.991 9.302a4.32 4.32 0 0 0-.136-1.08l-3.257 3.264-3.133-3.133 3.259-3.26a4.345 4.345 0 0 0-5.147 5.714l.172.454-6.704 6.704-1.06-1.06 6.034-6.036a5.845 5.845 0 0 1 5.63-7.41 5.79 5.79 0 0 1 2.768.7l.884.479-3.716 3.715 1.01 1.01 3.717-3.72.479.885a5.845 5.845 0 0 1-6.719 8.4L6.98 21.02l-1.06-1.06 6.768-6.768.457.18a4.14 4.14 0 0 0 1.503.273 4.345 4.345 0 0 0 4.343-4.343" /></svg>
  );
};