/* eslint-disable no-unused-vars */ /* eslint-disable react/prop-types */ /* eslint-disable react/no-unknown-property */ import { Box, Button, Container, Text } from "@chakra-ui/react"; import banner from "../../assets/images/communityBanner.webp"; import { useGetCommunitiesBannerQuery } from "../../Redux/slice/communityBannerSlice"; const BannerContent = [ { heading1: `Welcome To The`, heading2: `Rubix Community`, }, { subheading: `This is a space for enterprises, dApp developers, stakeholders and blockchain advocates to aggregate resources and ideas to make a difference through our green blockchain technology.`, }, { btn: `Explore our community`, }, ]; const CommunityBanner = ({ onClick }) => { const { data } = useGetCommunitiesBannerQuery(); const content = data?.data.rows; const filteredContent = content?.filter((item) => item.status === true); console.log(filteredContent); return ( <> {filteredContent?.map((item) => ( {item.Heading} {item.sub_heading} ))} ); }; export default CommunityBanner;