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

export const IconDollarSign24 = 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="M11.75 1a.75.75 0 0 1 .75.75V4h4.708a.75.75 0 0 1 0 1.5H12.5v5.75h2.105c1.164 0 2.281.46 3.106 1.28A4.36 4.36 0 0 1 19 15.625a4.36 4.36 0 0 1-1.29 3.095A4.4 4.4 0 0 1 14.605 20H12.5v2.25a.75.75 0 0 1-1.5 0V20H5.75a.75.75 0 0 1 0-1.5H11v-5.75H9.396a4.4 4.4 0 0 1-3.107-1.28A4.36 4.36 0 0 1 5 8.375C5 7.213 5.464 6.1 6.29 5.28A4.4 4.4 0 0 1 9.395 4H11V1.75a.75.75 0 0 1 .75-.75m.75 17.5h2.105c.769 0 1.506-.304 2.048-.844a2.864 2.864 0 0 0 0-4.062 2.9 2.9 0 0 0-2.048-.844H12.5zm-3.104-13c-.77 0-1.507.304-2.05.844A2.86 2.86 0 0 0 6.5 8.375c0 .761.304 1.492.847 2.031s1.28.844 2.049.844H11V5.5z"
                />
            </svg>
        );
    }
);
