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

export const IconGift24 = 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="M17.571 1c.893 0 1.76.33 2.406.934A3.17 3.17 0 0 1 21 4.25c0 .63-.192 1.235-.54 1.75h.79c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 21.25 13H21v7.25A2.75 2.75 0 0 1 18.25 23H5.75A2.75 2.75 0 0 1 3 20.25V13h-.25A1.75 1.75 0 0 1 1 11.25v-3.5C1 6.784 1.784 6 2.75 6h1.29a3.13 3.13 0 0 1-.54-1.75c0-.88.374-1.712 1.022-2.316A3.53 3.53 0 0 1 6.93 1c2.266 0 3.67 1.524 4.463 2.87.401.681.672 1.356.842 1.858l.016.046.016-.046c.17-.502.44-1.177.842-1.859C13.901 2.524 15.306 1 17.571 1M4.5 20.25c0 .69.56 1.25 1.25 1.25h5.75V13h-7zM13 21.5h5.25c.69 0 1.25-.56 1.25-1.25V13H13zM2.75 7.5a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h8.75v-4zm10.25 4h8.25a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25H13zm-6.071-9a2.03 2.03 0 0 0-1.383.53A1.67 1.67 0 0 0 5 4.25c0 .447.19.887.546 1.22.358.334.855.53 1.383.53h3.811a8.5 8.5 0 0 0-.64-1.37C9.419 3.477 8.413 2.5 6.929 2.5m10.642 0c-1.484 0-2.49.976-3.17 2.13A8.5 8.5 0 0 0 13.76 6h3.811a2.03 2.03 0 0 0 1.383-.53 1.67 1.67 0 0 0 .546-1.22c0-.447-.19-.887-.546-1.22a2.03 2.03 0 0 0-1.383-.53"
                />
            </svg>
        );
    }
);
