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

export const IconGovernment24 = 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="M21.25 13a.75.75 0 0 1 0 1.5H19.5v7h2.75a.75.75 0 0 1 0 1.5H1.75a.75.75 0 0 1 0-1.5H4.5v-7H2.75a.75.75 0 0 1 0-1.5zM6 21.5h3v-7H6zm4.5 0h3v-7h-3zm4.5 0h3v-7h-3zM15.25 1a.75.75 0 0 1 0 1.5H13a.25.25 0 0 0-.25.25V4.5l-.001.038a7.25 7.25 0 0 1 6.48 6.655.75.75 0 1 1-1.496.114 5.75 5.75 0 0 0-11.466 0 .75.75 0 0 1-1.496-.114 7.25 7.25 0 0 1 6.48-6.655L11.25 4.5V2.75c0-.966.784-1.75 1.75-1.75z"
                />
            </svg>
        );
    }
);
