import React from "react"; import { useCollectionContext } from "../../pages/collections/CollectionPage"; import { useCollection } from "../../hooks/useCollections"; import { formatUTCToLocalTime } from "../../utils/dateUtils"; import { formatFigure } from "../../utils/appUtils"; import Avatar from "../common/Avatar"; const ViewCollection = () => { const { viewCollection } = useCollectionContext(); const { data, isLoading, isError, error } = useCollection(viewCollection); if (isLoading) return
Collection Details
{data?.title}
{data?.description}
Received Payments
Sr,No | Transaction ID | Received Date | Amount | Received By |
---|---|---|---|---|
{index + 1} | {payment.transactionId} | {formatUTCToLocalTime(payment.paymentReceivedDate)} | {formatFigure(payment.amount, { type: "currency", currency: "INR", })} |
|