import { useId, type SVGProps } from 'react';

export type JournalIconProps = SVGProps<SVGSVGElement> & {
  /** Accessibility title for the icon, set aria-hidden="true" if the icon is purely decorative. */
  title?: string;
  /**
   * The size of the icon.
   * It sets the font-size, possible as the width and height is `1em`. If not set, the icon will inherit the font size of its parent.
   */
  size?: '2xl' | 'xl' | 'large' | 'medium' | 'small';
  /**
   * The color of the icon.
   * @default 'inherit'
   */
  color?: 'inherit' | 'primary' | 'gray' | 'black' | 'white';
};

export const JournalIcon = ({ title, size, color, ...props }: JournalIconProps) => {
  const titleId = useId();
  return (
    <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" focusable='false' role='img' width='1em' height='1em'  aria-labelledby={title ? titleId : undefined} data-size={size} data-color={color} {...props}>{title ? <title id={titleId}>{title}</title> : null}<path fillRule="evenodd" d="M7.26 3.516c-.964 0-1.747.782-1.747 1.746V20.49H13.5V5.262c0-.643.187-1.242.51-1.746zm9.486-1.5H7.26a3.247 3.247 0 0 0-3.247 3.246V21.99h10.985v-.75H15v-8.487h4.993v-7.49a3.247 3.247 0 0 0-3.246-3.246Zm0 1.5c-.964 0-1.747.782-1.747 1.746v5.99h3.493v-5.99c0-.964-.783-1.746-1.746-1.746m-4.244 6.99H6.51v-1.5h5.99v1.5Zm0 2.995H6.51v-1.5h5.99v1.5Zm-1.857 2.996H6.51v-1.5h4.134v1.5Z" clipRule="evenodd" /></svg>
  );
};