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

export const IconResizeColumn24 = 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}
                <g fill={color}>
                    <path d="M5.05 15.168a.75.75 0 011.005 1.112l-1.47 1.47h14.871l-1.463-1.463a.75.75 0 011.06-1.06l2.744 2.743a.75.75 0 010 1.06l-2.743 2.743-.057.051a.75.75 0 01-1.055-1.055l.051-.056 1.463-1.463H4.585l1.47 1.47a.75.75 0 01-1.06 1.06l-2.75-2.75a.75.75 0 010-1.06l2.75-2.75.056-.052z" />
                    <path
                        fillRule="evenodd"
                        d="M19.2 2c.888 0 1.608.348 2.097.902.477.54.703 1.24.703 1.911v7.937a.75.75 0 01-.75.75H2.75a.75.75 0 01-.75-.75V4.813c0-.69.236-1.392.725-1.93C3.224 2.336 3.95 2 4.832 2h14.367zM4.831 3.5c-.481 0-.796.173-.997.394a1.367 1.367 0 00-.335.92V12h17V4.813c0-.347-.12-.681-.328-.917-.196-.223-.502-.396-.973-.396H4.832z"
                        clipRule="evenodd"
                    />
                </g>
            </svg>
        );
    }
);
