import React, { useState } from "react"; import PropTypes from "prop-types"; import BannerWrapper from "./styled-campaigns-banner"; import Button from "../button"; import Text from "../text"; import Loaders from "@appserver/common/components/Loaders"; const onButtonClick = (url) => { window.location = url; }; const CampaignsBanner = (props) => { const { headerLabel, subHeaderLabel, img, btnLabel, link } = props; const [imageLoad, setImageLoad] = useState(false); const handleImageLoaded = () => { setImageLoad(true); }; const onMouseDown = (e) => { e.preventDefault(); }; return ( {headerLabel} {subHeaderLabel} {!imageLoad && }