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

export type WarningFillIconProps = 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 WarningFillIcon = ({ title, size, color, ...props }: WarningFillIconProps) => {
  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="m13.66 4.146 7.381 13.624-1.426 2.13-.221.331-.4.001-14.457.01-.223-.334-1.173-1.757-.252-.378.217-.397 7.422-13.623h2.92zm-1.658 11.341a1.123 1.123 0 1 0 0 2.247 1.123 1.123 0 0 0 0-2.247M11.252 8v6.49h1.5V8z" clipRule="evenodd" /></svg>
  );
};