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

export const IconShoppingBag24 = 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={24}
                height={24}
                fill="none"
                viewBox="0 0 24 24"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <path
                    fill={color}
                    d="M16.386 1c.758 0 1.483.313 2.003.865l2.864 3.043c.48.51.747 1.185.747 1.885V20.25A2.75 2.75 0 0 1 19.25 23H4.75A2.75 2.75 0 0 1 2 20.25V6.793c0-.7.267-1.375.747-1.885l2.864-3.043A2.75 2.75 0 0 1 7.614 1zM3.5 20.25c0 .69.56 1.25 1.25 1.25h14.5c.69 0 1.25-.56 1.25-1.25V7h-17zm12.25-10.5a.75.75 0 0 1 .75.75 4.5 4.5 0 0 1-9 0 .75.75 0 0 1 1.5 0 3 3 0 0 0 6 0 .75.75 0 0 1 .75-.75M7.614 2.5a1.25 1.25 0 0 0-.91.394L4.251 5.5h15.498l-2.453-2.606a1.25 1.25 0 0 0-.91-.394z"
                />
            </svg>
        );
    }
);
