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

export type ErrorFillIconProps = 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 ErrorFillIcon = ({ title, size, color, ...props }: ErrorFillIconProps) => {
  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="M20.99 8.276v7.448l-5.266 5.266H8.276l-5.261-5.267V8.277l5.262-5.262h7.446zm-8.981 2.672-2.97-2.97-1.061 1.06 2.97 2.97-2.985 2.984 1.06 1.06 2.985-2.984 2.984 2.985 1.06-1.06-2.983-2.984 2.974-2.97-1.06-1.061z" clipRule="evenodd" /></svg>
  );
};