import React, { useEffect, useState } from "react";
import { Link, useParams } from "react-router-dom";
import {
useGetCommunityByIdQuery,
useGetCommunityQuery,
} from "../../Services/api.service";
import {
Box,
Button,
Divider,
Image,
StackDivider,
Tag,
VStack,
} from "@chakra-ui/react";
import { OPACITY_ON_LOAD } from "../../Layout/animations";
import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
import { formatDate } from "../../Components/Functions/UTCConvertor";
import Header from "../../Components/Header";
const ComunityViewPage = () => {
const { id } = useParams();
const { data, error, isLoading } = useGetCommunityByIdQuery(id);
const member = data?.data;
return isLoading ? (
) : (
Members Info
Select the platform for which you need to create this campaign.
Display profile
Below is the profile that will be displayed on the community page.
{/* */}
{data?.data?.status ? (
Active
) : (
Inactive
)}
Name
{member?.member_name}
Designation
{member?.designation}
Description
{member?.description}
Linkedin
{member?.linkedin}
Created At
{formatDate(member?.createdAt)}
Updated At
{formatDate(member?.updatedAt)}
);
};
export default ComunityViewPage;