m3-academy-template-vtexio/custom/react/components/Menu/SubMenuBanner.tsx
Caroline Moran f2a03c53ae first commit
2022-08-11 09:06:07 -04:00

19 lines
425 B
TypeScript

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};