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="m12.003 3.066 8.964 6.94-2.867 2.219a7.208 7.208 0 0 1 1.393 4.271v2.996h-1.5v-2.996c0-.07-.001-.141-.004-.211l-5.984 4.654-7.243-5.572v-.369c0-.846.153-1.497.429-2.066a5.1 5.1 0 0 1 .533-.848L3.04 10.005l8.964-6.94ZM6.91 13.003a3.37 3.37 0 0 0-.37.585c-.132.27-.232.596-.266 1.05L12 19.044l5.681-4.419a5.72 5.72 0 0 0-.768-1.48l-4.91 3.801-5.092-3.942Zm10.18-1.894a7.214 7.214 0 0 0-4.838-1.854v1.5c1.376 0 2.638.484 3.627 1.291l-3.877 3.002-6.514-5.043 6.514-5.042 6.514 5.042z" clipRule="evenodd" /></svg>
  );
};