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

export const IconDatabase24 = 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="M12 2c2.61 0 5.005.342 6.773.915.879.285 1.645.641 2.207 1.072C21.53 4.41 22 5 22 5.75v12.412c0 .752-.454 1.353-1.007 1.791-.56.444-1.324.81-2.203 1.105-1.766.59-4.163.942-6.79.942s-5.024-.352-6.79-.942c-.879-.294-1.643-.66-2.203-1.105C2.454 19.515 2 18.914 2 18.163V5.75c0-.751.47-1.34 1.02-1.763.562-.43 1.328-.787 2.208-1.072C6.995 2.342 9.389 2 12 2m8.5 11.84c-.486.288-1.07.536-1.716.746-1.764.573-4.159.914-6.784.914s-5.02-.341-6.784-.914c-.646-.21-1.23-.458-1.716-.746v4.322c0 .102.06.315.438.615.372.295.957.594 1.748.859 1.574.526 3.802.864 6.314.864s4.74-.338 6.314-.864c.791-.265 1.376-.564 1.747-.859.378-.3.439-.513.439-.615zm0-6.005c-.49.29-1.078.54-1.727.75-1.768.573-4.162.915-6.773.915s-5.005-.342-6.772-.915c-.65-.21-1.239-.46-1.728-.75v3.915c0 .08.05.281.43.575.372.287.957.577 1.75.834C7.256 13.671 9.486 14 12 14s4.744-.329 6.32-.84c.793-.258 1.378-.548 1.75-.835.38-.294.43-.495.43-.575zM12 3.5c-2.498 0-4.729.33-6.31.842-.794.257-1.382.549-1.756.836-.386.295-.434.495-.434.572s.048.277.434.572c.374.287.962.579 1.756.836C7.271 7.671 9.502 8 12 8s4.729-.33 6.31-.842c.794-.257 1.382-.549 1.756-.836.386-.295.434-.495.434-.572s-.049-.277-.434-.572c-.374-.287-.962-.579-1.756-.836C16.729 3.829 14.498 3.5 12 3.5"
                />
            </svg>
        );
    }
);
