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

export const IconAtSign16 = 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}
                    fillRule="evenodd"
                    d="M4.581.768A8 8 0 0 1 9.817.21a8 8 0 0 1 4.448 2.818A8 8 0 0 1 16 8v1.001c0 1.46-.964 2.998-2.75 3a2.62 2.62 0 0 1-2.3-1.298 4 4 0 0 1-2.95 1.298 4 4 0 0 1-4-4 4.001 4.001 0 0 1 6.5-3.123v-.127c0-.413.336-.75.75-.75.412.002.75.338.75.75v4.25c0 .462.144.847.356 1.1.203.24.495.4.894.4.708-.002 1.25-.595 1.25-1.5v-1a6.5 6.5 0 0 0-1.408-4.04 6.5 6.5 0 0 0-3.614-2.29 6.5 6.5 0 0 0-4.255.453 6.503 6.503 0 0 0-1.35 10.898A6.5 6.5 0 0 0 7.888 14.5a6.5 6.5 0 0 0 4.063-1.339.753.753 0 0 1 1.052.14c.249.328.186.8-.14 1.051a8 8 0 0 1-5 1.647 8 8 0 0 1-4.943-1.817A8.005 8.005 0 0 1 4.581.768M8 5.501c-1.38 0-2.5 1.12-2.5 2.5a2.5 2.5 0 0 0 2.5 2.5 2.505 2.505 0 0 0 2.5-2.5 2.504 2.504 0 0 0-2.5-2.5"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
