import React, { ImgHTMLAttributes } from "react";
import classNames from "classnames";
import { bemHOF } from "../../utilities/bem";

const cn = bemHOF("Image");

export const Image = (props: ImgHTMLAttributes<HTMLImageElement>) => {
  const { alt = "", className, ...rest } = props;

  return <img className={classNames(cn(), className)} alt={alt} {...rest} />;
};
