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

export type CurrencyIconProps = 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 CurrencyIcon = ({ title, size, color, ...props }: CurrencyIconProps) => {
  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="M20.75 13.875a4.625 4.625 0 1 0-9.25 0 4.625 4.625 0 0 0 9.25 0m-5-10.125v3h-1.5v-1.5H5v1.5h6.25v1.5H3.5v1.5H9v1.5H5v1.5h3v1.5H3.5v1.5H9v1.5H2v-4.5h1.5v-1.5H2v-4.5h1.5v-3zm6.5 10.125a6.125 6.125 0 1 1-12.25 0 6.125 6.125 0 0 1 12.25 0" /></svg>
  );
};