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

export type PulsIconProps = 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 PulsIcon = ({ title, size, color, ...props }: PulsIconProps) => {
  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 d="M19.457 5.377c-2.023-2.023-5.36-1.978-7.454.085-2.098-2.068-5.436-2.108-7.46-.085A5.227 5.227 0 0 0 3.016 9.14h1.499a3.745 3.745 0 0 1 1.094-2.708c.674-.674 1.584-1.039 2.568-1.039h.095a3.993 3.993 0 0 1 2.703 1.154l1.029 1.03 1.03-1.03a3.994 3.994 0 0 1 2.702-1.154c1.04-.015 1.968.345 2.663 1.04a3.751 3.751 0 0 1 0 5.295l-6.4 6.29-4.816-4.751-1.06 1.06 5.876 5.79 7.454-7.33a5.256 5.256 0 0 0 0-7.419l.005.01Z" /><path d="m4.794 12.811 2.787-2.568 3.647 3.897 3.203-3.197h1.938v-1.5h-2.557l-2.548 2.544L7.666 8.14 3.76 11.767" /></svg>
  );
};