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

export type GroupExpandingIconProps = 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 GroupExpandingIcon = ({ title, size, color, ...props }: GroupExpandingIconProps) => {
  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="M17.868 4.637V3.016h1.5v1.621h1.622v1.5h-1.622V7.76h-1.5V6.137h-1.622v-1.5zm-8.282-.102a2.608 2.608 0 0 0-2.61 2.61A2.608 2.608 0 0 0 9.45 9.75l.141-.001v1.5h-.005v.005l-.15-.003c-2.675.08-4.921 2.236-4.921 4.73h-1.5c0-2.546 1.673-4.711 3.934-5.683a4.1 4.1 0 0 1-1.473-3.154 4.108 4.108 0 0 1 4.11-4.11 4.108 4.108 0 0 1 4.11 4.11h-1.5a2.608 2.608 0 0 0-2.61-2.61Zm4.828 5.002a2.61 2.61 0 1 0 0 5.22 2.61 2.61 0 0 0 0-5.22m2.636 5.764a4.11 4.11 0 1 0-5.268.003c-2.264.972-3.94 3.138-3.94 5.685h1.5c0-2.541 2.335-4.732 5.077-4.732 2.743 0 5.077 2.19 5.077 4.732h1.5c0-2.55-1.68-4.718-3.946-5.688" clipRule="evenodd" /></svg>
  );
};