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

export const IconShoppingBag16 = 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="M10.879 0a2.25 2.25 0 0 1 1.673.746l1.87 2.081c.372.413.578.949.578 1.504v9.419A2.25 2.25 0 0 1 12.75 16h-9.5A2.25 2.25 0 0 1 1 13.75V4.331c0-.555.206-1.09.577-1.504L3.448.747A2.25 2.25 0 0 1 5.121 0zM2.5 13.75c0 .414.336.75.75.75h9.5a.75.75 0 0 0 .75-.75V5h-11zm7.75-7.25a.75.75 0 0 1 .75.75c0 .76-.34 1.468-.911 1.975A3.15 3.15 0 0 1 8 10a3.15 3.15 0 0 1-2.089-.775A2.64 2.64 0 0 1 5 7.25a.75.75 0 0 1 1.5 0c0 .301.134.61.407.854.277.245.669.396 1.093.396s.816-.15 1.093-.396c.273-.244.407-.553.407-.854a.75.75 0 0 1 .75-.75m-5.129-5a.75.75 0 0 0-.558.249L2.99 3.5h10.022l-1.574-1.751a.75.75 0 0 0-.558-.249z"
                />
            </svg>
        );
    }
);
