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

export const IconPackage16 = 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="M6.98.678a2.25 2.25 0 0 1 2.04 0l5.297 2.696c.42.213.683.644.683 1.114v6.717c0 .658-.37 1.261-.956 1.56L9.02 15.32a2.25 2.25 0 0 1-2.042 0l-5.023-2.556A1.75 1.75 0 0 1 1 11.205V4.488c0-.47.264-.9.683-1.114zM2.5 11.205c0 .094.053.18.137.223l4.613 2.348V7.963L2.5 5.588zm6.25-3.242v5.813l4.613-2.348a.25.25 0 0 0 .137-.223V5.588zm-5.526-3.69L8 6.66l1.63-.816-4.79-2.396zM8.34 2.015a.75.75 0 0 0-.68 0l-1.157.589 4.805 2.403 1.468-.734z"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
