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

export type PriceIconProps = 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 PriceIcon = ({ title, size, color, ...props }: PriceIconProps) => {
  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="M7.679 9.256a1.578 1.578 0 1 0 0-3.155 1.578 1.578 0 0 0 0 3.155" /><path fillRule="evenodd" d="M3.015 3.014h9.298l7.729 7.73a3.248 3.248 0 0 1 0 4.59l-4.708 4.708a3.248 3.248 0 0 1-4.59 0l-7.73-7.729V3.014Zm1.5 1.5v7.178l7.289 7.29c.68.68 1.788.68 2.47 0l4.707-4.709a1.748 1.748 0 0 0 0-2.47l-7.289-7.289z" clipRule="evenodd" /></svg>
  );
};