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

export type TicketIconProps = 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 TicketIcon = ({ title, size, color, ...props }: TicketIconProps) => {
  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="M11.83 2.7a3.309 3.309 0 0 1 4.68.02l1.13 1.137-.535.528a1.81 1.81 0 1 0 2.55 2.57l.532-.528 1.127 1.136a3.31 3.31 0 0 1-.018 4.683l-.001-.001-9.123 9.054a3.31 3.31 0 0 1-4.682-.019l-1.128-1.138.533-.527a1.81 1.81 0 1 0-2.55-2.57l-.532.528-.528-.532-.6-.606a3.31 3.31 0 0 1-.098-4.557l.118-.123zm3.615 1.075a1.81 1.81 0 0 0-2.559-.01L6.622 9.98H6.62l-2.86 2.84a1.81 1.81 0 0 0-.135 2.421l.124.138.133.134a3.308 3.308 0 0 1 4.54 4.578l.132.133a1.81 1.81 0 0 0 2.559.012l9.126-9.056a1.81 1.81 0 0 0 .01-2.558l-.133-.136a3.311 3.311 0 0 1-4.54-4.577l-.132-.134Z" /><path d="M13.513 11.238a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5m-2.12-2.12a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5m4.24 4.245a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5" /><path d="M11.83 2.7a3.309 3.309 0 0 1 4.68.02l1.13 1.137-.535.528a1.81 1.81 0 1 0 2.55 2.57l.532-.528 1.127 1.136a3.31 3.31 0 0 1-.018 4.683l-.001-.001-9.123 9.054a3.31 3.31 0 0 1-4.682-.019l-1.128-1.138.533-.527a1.81 1.81 0 1 0-2.55-2.57l-.532.528-.528-.532-.6-.606a3.31 3.31 0 0 1-.098-4.557l.118-.123zm3.615 1.075a1.81 1.81 0 0 0-2.559-.01L6.622 9.98H6.62l-2.86 2.84a1.81 1.81 0 0 0-.135 2.421l.124.138.133.134a3.308 3.308 0 0 1 4.54 4.578l.132.133a1.81 1.81 0 0 0 2.559.012l9.126-9.056a1.81 1.81 0 0 0 .01-2.558l-.133-.136a3.311 3.311 0 0 1-4.54-4.577l-.132-.134Z" /><path d="M13.513 11.238a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5m-2.12-2.12a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5m4.24 4.245a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5" /></svg>
  );
};