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.499 10.63a1.372 1.372 0 1 1-1.124 2.161v-1.577a1.37 1.37 0 0 1 1.124-.585Z" /><path d="m14.375 21.124-5.566-5.875H6.136a3.247 3.247 0 0 1 0-6.493H8.82l5.554-5.554v17.922Zm4.835-4.028-.527.533-.527.534-2.301-2.271.526-.535.527-.533zm1.78-4.378-3.235.024-.012-1.5 3.236-.024zm-1.85-5.85-2.27 2.297-1.067-1.055 2.271-2.297 1.067 1.055ZM4.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.747" /></svg>
  );
};