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

export type HomeIconProps = 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 HomeIcon = ({ title, size, color, ...props }: HomeIconProps) => {
  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.49 11.576-7.488-6.58-7.487 6.58v6.151c0 .964.782 1.747 1.746 1.748h11.483c.964 0 1.746-.784 1.746-1.748v-6.15Zm1.5 6.151a3.248 3.248 0 0 1-3.246 3.248H6.261a3.248 3.248 0 0 1-3.246-3.248v-6.829l.255-.224L12.003 3l8.732 7.674.255.224v6.83Z" /></svg>
  );
};