m3-academy-template-vtexio-.../custom/react/components/Menu/SubMenuBanner.tsx

19 lines
425 B
TypeScript
Raw Normal View History

2022-08-11 13:06:07 +00:00
import React from "react";
// import { Link } from "vtex.render-runtime";
import styles from "./SubMenuBanner.css";
const SubMenuBanner = ({ bannerImg, bannerUrl }: {
bannerImg: string, bannerUrl: string
}) => {
return (
<div className={styles.SubMenuBanner}>
<a href={bannerUrl}>
<img src={bannerImg} alt=""/>
</a>
</div>
);
};
export {SubMenuBanner};