import React from "react"; import { useParams } from "react-router-dom"; import { useGetBuildBannerByIdQuery } from "../../Services/api.service"; import { OPACITY_ON_LOAD } from "../../Layout/animations"; import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders"; import { formatDate } from "../../Components/Functions/UTCConvertor"; import Header from "../../Components/Header"; import { Box, Button, Divider, Image, StackDivider, Tag, Text, VStack, } from "@chakra-ui/react"; import BannerMainCard from "./BannerMainCard"; const API_URL = import.meta.env.VITE_API_BASE_URL; const BannerView = ({data, isLoading, editLink, center}) => { const banner = data?.data; return isLoading ? ( ) : (
Banners Info Select the platform for which you need to create this campaign. Display banner Below is the profile that will be displayed on the community page. {/* Selected Image */} Status {data?.data?.status ? ( Active ) : ( Inactive )} Heading {banner?.Heading} Sub heading {banner?.sub_heading} Button title {banner?.CTO_button_title} Button link {banner?.CTO_button_link} Created At {formatDate(banner?.createdAt)} Updated At {formatDate(banner?.updatedAt)} ); }; export default BannerView;