diff --git a/src/app/groups/[id]/page.tsx b/src/app/groups/[id]/page.tsx new file mode 100644 index 0000000..1bed224 --- /dev/null +++ b/src/app/groups/[id]/page.tsx @@ -0,0 +1,194 @@ +"use client"; + +import { useState, useEffect } from "react"; +import { useParams } from "next/navigation"; +import { ArrowLeft, Users, DollarSign, Calendar, Copy, Check } from "lucide-react"; +import Link from "next/link"; + +interface GroupDetail { + id: string; + name: string; + description: string; + admin: string; + balance: number; + minContribution: number; + cycleDuration: number; + isActive: boolean; + members: string[]; + createdAt: string; +} + +function Skeleton() { + return ( +
{group.description}
+${group.balance.toLocaleString()} USDC
+{group.members.length}
+${group.minContribution} USDC
+{group.cycleDuration} days
+No recent activity
+Activity will appear here
+{item.description}
+{item.timestamp ? new Date(item.timestamp).toLocaleDateString() : ""}
+No contribution data yet
+Contributions will appear here
+- This will deploy a new TreasuryContract on Stellar Testnet. -
-+ This will deploy a new TreasuryContract on Stellar Testnet. +
+ + {error && ( ++ Please wait while we deploy your TreasuryContract to Stellar Testnet... +
++ Your TreasuryContract has been deployed to Stellar Testnet. +
+ +{error}
+