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

export type LayerIconProps = 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 LayerIcon = ({ title, size, color, ...props }: LayerIconProps) => {
  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.002 3.102 9.038 5-9.038 5.008-9.037-5.007 9.037-5Zm-5.94 5.002 5.94 3.29 5.941-3.29-5.94-3.288zm5.878 7.245 8.188-4.503.723 1.314-8.916 4.904-8.786-4.906.731-1.31 8.06 4.5Zm.062 3.926L3.89 14.598l-.749 1.3 8.862 5.108 8.862-5.108-.749-1.3-8.113 4.677Z" clipRule="evenodd" /></svg>
  );
};