import withToolTip from "../../../hoc/withToolTip";
import { ComprehensiveProps } from "../../DomainProps";

export interface ImageProps extends ComprehensiveProps {
  src?: string | undefined;
  defaultSrc?: string | undefined;
  alt?: string | undefined;
}

function ImageWidget({ id, widgetStyle, src, alt, defaultSrc }: ImageProps) {
  return (
    <div id={widgetStyle?.id} className={widgetStyle?.className || ""}>
      <img src={src} alt={alt} />
    </div>
  );
}

export default withToolTip(ImageWidget);
