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

export const IconHandshake24 = 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="M10.611 4.5a.75.75 0 0 1 .55.24l.476.514.523-.531a.75.75 0 0 1 .534-.223h3.473a.75.75 0 0 1 .55.24L17.883 6h4.367a.75.75 0 0 1 0 1.5H20v7.458c0 .69.56 1.25 1.25 1.25h1a.75.75 0 0 1 0 1.5h-1A2.75 2.75 0 0 1 18.704 16h-2.437l-2.713 2.204a2.75 2.75 0 0 1-3.134.234L6.295 16h-1a2.75 2.75 0 0 1-2.545 1.708h-1a.75.75 0 0 1 0-1.5h1c.69 0 1.25-.56 1.25-1.25V7.5H1.75a.75.75 0 0 1 0-1.5h4.367l1.166-1.26a.75.75 0 0 1 .55-.24zM6.995 7.26a.75.75 0 0 1-.55.24H5.5v7h1c.134 0 .266.036.382.105l4.302 2.541a1.25 1.25 0 0 0 1.423-.106l2.312-1.878-1.48-1.664a.75.75 0 1 1 1.121-.996l1.777 1.998H18.5v-7h-.944a.75.75 0 0 1-.551-.24L15.839 6h-2.831L10.37 8.673a1.25 1.25 0 0 0-.032 1.723l.119.13a1.25 1.25 0 0 0 1.763.08l1.275-1.16a.75.75 0 0 1 1.01 1.109l-1.277 1.16a2.75 2.75 0 0 1-3.876-.177l-.12-.129a2.75 2.75 0 0 1 .07-3.79l1.28-1.297L10.283 6H8.161zm-5.12 5.879a.875.875 0 1 1 0 1.75.875.875 0 0 1 0-1.75M22.125 13a.875.875 0 1 1 0 1.75.875.875 0 0 1 0-1.75"
                />
            </svg>
        );
    }
);
