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

export type SchoolIconProps = 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 SchoolIcon = ({ title, size, color, ...props }: SchoolIconProps) => {
  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="m11.964 3 8.964 6.94-2.867 2.22a7.208 7.208 0 0 1 1.393 4.27v2.996h-1.5V16.43c0-.07-.001-.14-.004-.21l-5.984 4.653-7.243-5.571v-.37c0-.846.153-1.497.429-2.065.153-.315.339-.593.533-.848L3 9.939zM6.87 12.937c-.15.199-.272.383-.37.585-.131.27-.23.596-.265 1.051l5.725 4.404 5.681-4.418a5.72 5.72 0 0 0-.768-1.481l-4.91 3.802zm10.18-1.893a7.214 7.214 0 0 0-4.837-1.854v1.5c1.375 0 2.638.484 3.627 1.29l-3.877 3.002L5.45 9.94l6.514-5.043 6.513 5.043-1.425 1.104Z" clipRule="evenodd" /></svg>
  );
};