import React from "react";
import { Link } from "react-router-dom";
const AccountDashboard = ({ className, bannerList }) => {
const getUpperBanner = bannerList?.slice(0, 3);
let getImage = ({banner_location, banner}) => {
if (banner_location == "LOCAL") {
return require(`../../assets/images/${banner}`);
} else {
return banner;
}
};
console.log(getUpperBanner);
return (
{getUpperBanner?.map((props, idx) => {
let image = getImage(props);
let { short_title, short_description, button_text, link_path } =
props;
return (
);
})}
);
};
export default AccountDashboard;
const TopBanner = ({ image, title = "", desc = "", btn, link_path, key }) => {
return (
);
};
const LowerBanner = ({ image, title = "", desc = "", btn, link_path, key }) => {
let Image = require(`../../assets/images/offer.jpg`);
return (
Banner Title
Banner description text will come follow
);
};