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

export const IconNewspaper24 = 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="M19.75 1a2.75 2.75 0 0 1 2.75 2.75v16.5A2.75 2.75 0 0 1 19.75 23H4.25a2.75 2.75 0 0 1-2.75-2.75v-12A2.75 2.75 0 0 1 4.25 5.5H5.5V3.75A2.75 2.75 0 0 1 8.25 1zM4.25 7C3.56 7 3 7.56 3 8.25v12a1.25 1.25 0 1 0 2.5 0V7zm4-4.5C7.56 2.5 7 3.06 7 3.75v16.5c0 .45-.108.875-.3 1.25h13.05c.69 0 1.25-.56 1.25-1.25V3.75c0-.69-.56-1.25-1.25-1.25zm5.5 13.5a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1 0-1.5zm3-3a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1 0-1.5zm.5-8.5c.966 0 1.75.784 1.75 1.75v3.5a1.75 1.75 0 0 1-1.75 1.75h-6.5A1.75 1.75 0 0 1 9 9.75v-3.5c0-.966.784-1.75 1.75-1.75zM10.75 6a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25z"
                />
            </svg>
        );
    }
);
