import { forwardRef, useMemo } from 'react';
import { IconProps } from './types';

export const IconShoppingCart16 = forwardRef<SVGSVGElement, IconProps>(
    ({ color = 'currentColor', title, ...props }, svgRef) => {
        const titleId = useMemo(
            () =>
                title
                    ? 'title-' + Math.random().toString(36).substr(2, 9)
                    : undefined,
            [title]
        );
        return (
            <svg
                xmlns="http://www.w3.org/2000/svg"
                width={16}
                height={16}
                fill="none"
                viewBox="0 0 16 16"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <path
                    fill={color}
                    d="M6.25 12.5a1.25 1.25 0 0 1 0 2.5h-.01a1.25 1.25 0 1 1 0-2.5zm6.5 0a1.25 1.25 0 0 1 0 2.5h-.01a1.25 1.25 0 0 1 0-2.5zM2.404 1.5a2.25 2.25 0 0 1 2.207 1.813l.037.187h8.805a2.25 2.25 0 0 1 2.213 2.652l-.726 4A2.25 2.25 0 0 1 12.726 12H6.63a2.25 2.25 0 0 1-2.211-1.833l-.405-2.15-.874-4.413A.75.75 0 0 0 2.404 3H1.25a.75.75 0 0 1 0-1.5zm3.083 6.236.406 2.153a.75.75 0 0 0 .737.61h6.096a.75.75 0 0 0 .737-.615l.727-4A.75.75 0 0 0 13.453 5H4.945z"
                />
            </svg>
        );
    }
);
