"use client"
import React, { useEffect } from "react";
import { Carousel } from "flowbite-react";
const HomeBanner = ({data}) => {
return (<>
{data.map((d,i) => {
return {
let w = e.target.getAttribute('link');
if(w){
window.location.href = w;
}else{
window.location.href = '/';
}
}} id={`data-` + d.kode} className={`lg:rounded-b-[25px] `}
style={{
width: '100%',
height: '100%',
backgroundRepeat: 'no-repeat',
backgroundSize: 'contain'
}}
>
})}
>)
}
export default HomeBanner