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

export type MarketingIconProps = 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 MarketingIcon = ({ title, size, color, ...props }: MarketingIconProps) => {
  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="M14.992 11.878a.622.622 0 0 0-.617-.623V12.5a.622.622 0 0 0 .617-.622m4.218 5.218-.527.533-.527.534-2.301-2.271.526-.535.527-.533zm1.775-4.378-3.23.024-.012-1.5 3.23-.024zm-1.844-5.85-2.272 2.297-1.066-1.055 2.271-2.297zM4.39 12.003c0 .963.782 1.746 1.746 1.746h3.318l3.421 3.61V6.823l-3.433 3.433H6.136c-.964 0-1.746.783-1.746 1.747m12.102-.125A2.122 2.122 0 0 1 14.375 14v7.124l-5.566-5.875H6.136a3.247 3.247 0 0 1 0-6.493H8.82l5.554-5.554v6.553a2.122 2.122 0 0 1 2.117 2.123Z" /></svg>
  );
};