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

export const IconBucket16 = 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="M7.975.3C12.036.3 15.25 3.793 15.25 8a.75.75 0 0 1-.795.749 168 168 0 0 1-1.06 4.056c-.136.483-.269.938-.354 1.126-.187.412-.53.686-.873.87-.346.185-.756.312-1.182.403-.852.182-1.902.244-2.96.244-1.06 0-2.124-.062-2.99-.243-.432-.09-.848-.217-1.2-.401-.346-.182-.697-.456-.887-.873a1 1 0 0 1-.045-.13l-.205-.82a794 794 0 0 0-.947-3.733q-.076-.294-.136-.517A.75.75 0 0 1 .7 8C.7 3.793 3.913.3 7.975.3m4.458 9.264c-1.206.317-2.8.486-4.433.486s-3.227-.17-4.433-.486l-.199-.054a403 403 0 0 1 .786 3.106l.18.72a.7.7 0 0 0 .2.139c.182.095.45.186.81.261.717.15 1.662.212 2.681.212s1.949-.061 2.649-.21c.35-.075.61-.166.786-.26.173-.093.211-.16.215-.166v-.002l.025-.07q.027-.076.065-.202c.05-.167.114-.385.185-.639.143-.507.313-1.145.48-1.784.103-.391.203-.778.294-1.133a9 9 0 0 1-.291.082M8 6.9c-1.549 0-3.007.163-4.052.437-.486.127-.827.264-1.039.388.212.123.553.26 1.04.388C4.992 8.388 6.45 8.55 8 8.55s3.007-.162 4.052-.437c.486-.127.827-.265 1.039-.388-.212-.124-.553-.26-1.04-.388C11.008 7.063 9.55 6.9 8 6.9m-.025-5.1c-2.606 0-4.857 1.873-5.553 4.488.33-.157.718-.29 1.145-.402C4.773 5.569 6.367 5.4 8 5.4s3.227.17 4.433.486c.402.105.77.23 1.088.376C12.816 3.66 10.57 1.8 7.975 1.8"
                />
            </svg>
        );
    }
);
