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.853 4.622V3h1.5v1.622h1.622v1.5h-1.622v1.621h-1.5V6.122h-1.621v-1.5zm-8.281-.103a2.608 2.608 0 0 0-2.61 2.61 2.608 2.608 0 0 0 2.473 2.607l.141-.002v1.5h-.004v.005c-.05 0-.1 0-.15-.003-2.675.08-4.922 2.236-4.922 4.73H3c0-2.545 1.673-4.71 3.935-5.683A4.1 4.1 0 0 1 5.46 7.129a4.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.61ZM14.4 9.522a2.61 2.61 0 1 0 0 5.22 2.61 2.61 0 0 0 0-5.22m2.635 5.764a4.11 4.11 0 1 0-5.268.003c-2.263.971-3.939 3.137-3.939 5.685h1.5c0-2.542 2.334-4.732 5.077-4.732 2.742 0 5.076 2.19 5.076 4.732h1.5c0-2.55-1.679-4.718-3.946-5.688" clipRule="evenodd" /></svg>
  );
};