diff --git a/components/bounty-detail/bounty-detail-client.tsx b/components/bounty-detail/bounty-detail-client.tsx
index cddbaabd..b98afd56 100644
--- a/components/bounty-detail/bounty-detail-client.tsx
+++ b/components/bounty-detail/bounty-detail-client.tsx
@@ -1,5 +1,6 @@
"use client";
+import { useState, useCallback } from "react";
import { useRouter } from "next/navigation";
import { AlertCircle, ArrowLeft } from "lucide-react";
import { Button } from "@/components/ui/button";
@@ -10,13 +11,21 @@ import { BountyDetailSubmissionsCard } from "./bounty-detail-submissions-card";
import { BountyDetailSkeleton } from "./bounty-detail-bounty-detail-skeleton";
import { useBountyDetail } from "@/hooks/use-bounty-detail";
import { EscrowDetailPanel } from "../bounty/escrow-detail-panel";
+import { RefundStatusTracker } from "../bounty/refund-status";
import { FeeCalculator } from "../bounty/fee-calculator";
import { useEscrowPool } from "@/hooks/use-escrow";
+import type { CancellationRecord } from "@/types/escrow";
export function BountyDetailClient({ bountyId }: { bountyId: string }) {
const router = useRouter();
const { data: bounty, isPending, isError, error } = useBountyDetail(bountyId);
const { data: pool } = useEscrowPool(bountyId);
+ const [cancellationRecord, setCancellationRecord] =
+ useState
+ This bounty was cancelled. Detailed refund and cancellation + information is currently unavailable. +
++ This bounty was cancelled. Refund is being processed by the escrow + contract. +
+ {cancellation.reason && ( ++ Cancellation Reason +
+{cancellation.reason}
++ {format(new Date(refund.timestamp), "PPP 'at' p")} +
++ Transaction Hash +
+
+ {truncateHash(refund.transactionHash)}
+
+
+ + Cancellation Reason +
+{cancellation.reason}
+