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

export type LadderIconProps = 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 LadderIcon = ({ title, size, color, ...props }: LadderIconProps) => {
  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="m19.984 2.4-4 19.5-1.468-.3.738-3.6h-8.97l-.8 3.9-1.468-.3 4-19.5 1.468.3L8.746 6h8.97l.8-3.9zM6.592 16.5h8.97l.77-3.75h-8.97zm1.077-5.25h8.97l.77-3.75h-8.97z" /></svg>
  );
};