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

export type CartFilledIconProps = 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 CartFilledIcon = ({ title, size, color, ...props }: CartFilledIconProps) => {
  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="M8.257 6.76a3.748 3.748 0 0 1 3.746-3.746 3.748 3.748 0 0 1 3.745 3.746v.749h-1.5V6.76a2.248 2.248 0 0 0-2.245-2.246A2.248 2.248 0 0 0 9.757 6.76v.749h-1.5z" clipRule="evenodd" /><path d="M18.244 7.509H5.762v10.235a2.497 2.497 0 0 0 2.496 2.496h7.49a2.497 2.497 0 0 0 2.496-2.496z" /></svg>
  );
};