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

export const IconTruck24 = 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="M14.25 2A2.75 2.75 0 0 1 17 4.75V6h1.245c.74 0 1.448.297 1.965.825l3.004 3.067c.504.514.786 1.205.786 1.924v3.434A1.75 1.75 0 0 1 22.25 17h-1.014a3 3 0 1 1-4.473 0H7.237a3 3 0 1 1-4.473 0H1.75A1.75 1.75 0 0 1 0 15.25V4.75A2.75 2.75 0 0 1 2.75 2zM5 17.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m14 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M2.75 3.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .138.112.25.25.25H15.5V4.75c0-.69-.56-1.25-1.25-1.25zM17 15.5h5.25a.25.25 0 0 0 .25-.25v-3.434a1.25 1.25 0 0 0-.357-.875l-3.004-3.066a1.25 1.25 0 0 0-.894-.375H17z"
                />
            </svg>
        );
    }
);
