import React from 'react';
import type MdIconProps from './icon.model';

const MdHomeIcon: React.FunctionComponent<MdIconProps> = ({ className, ...otherProps }: MdIconProps) => {
  // eslint-disable-next-line no-console
  console.warn('MdHomeIcon is deprecated and will be removed in a future release. Use MdIconHome instead.');

  return (
    <svg
      viewBox="0 0 32 32"
      version="1.1"
      xmlns="http://www.w3.org/2000/svg"
      xmlnsXlink="http://www.w3.org/1999/xlink"
      className={className}
      {...otherProps}
    >
      <path
        d="M25.9044 28.2159H19.5044C19.2935 28.2118 19.0924 28.1262 18.9432 27.977C18.7941 27.8279 18.7085 27.6268 18.7044 27.4159V19.8479H14.4004V27.4159C14.3963 27.6268 14.3107 27.8279 14.1615 27.977C14.0124 28.1262 13.8113 28.2118 13.6004 28.2159H7.20039C6.98822 28.2159 6.78473 28.1316 6.6347 27.9816C6.48468 27.8315 6.40039 27.628 6.40039 27.4159V14.1679C6.40239 13.9598 6.48231 13.76 6.62439 13.6079L15.9524 4.00787C16.1091 3.86281 16.3148 3.78223 16.5284 3.78223C16.742 3.78223 16.9477 3.86281 17.1044 4.00787L26.4324 13.6079C26.5773 13.7582 26.6576 13.9591 26.6564 14.1679V27.4159C26.6568 27.62 26.5791 27.8165 26.4393 27.9652C26.2995 28.114 26.1081 28.2036 25.9044 28.2159ZM20.3524 26.6159H25.1524V14.4879L16.5764 5.68787L8.04839 14.4879V26.6159H12.8484V19.0479C12.8484 18.8357 12.9327 18.6322 13.0827 18.4822C13.2327 18.3322 13.4362 18.2479 13.6484 18.2479H19.6004C19.8126 18.2479 20.016 18.3322 20.1661 18.4822C20.3161 18.6322 20.4004 18.8357 20.4004 19.0479L20.3524 26.6159Z"
        fill="currentColor"
      />
    </svg>
  );
};

export default MdHomeIcon;
