From 9c8001f21cfc2dadfd564a1d9ab27bb293cfdb14 Mon Sep 17 00:00:00 2001
From: thesn10 <38666407+thesn10@users.noreply.github.com>
Date: Thu, 25 Jun 2026 12:22:15 +0200
Subject: [PATCH] feat: listing detail view
---
app/src/app/listing/[pk]/page.tsx | 18 +++
app/src/components/ListingDetail.tsx | 170 +++++++++++++++++++++++++++
app/src/hooks/useListing.ts | 18 +++
app/src/hooks/useOrdersForListing.ts | 18 +++
4 files changed, 224 insertions(+)
create mode 100644 app/src/app/listing/[pk]/page.tsx
create mode 100644 app/src/components/ListingDetail.tsx
create mode 100644 app/src/hooks/useListing.ts
create mode 100644 app/src/hooks/useOrdersForListing.ts
diff --git a/app/src/app/listing/[pk]/page.tsx b/app/src/app/listing/[pk]/page.tsx
new file mode 100644
index 0000000..f16b441
--- /dev/null
+++ b/app/src/app/listing/[pk]/page.tsx
@@ -0,0 +1,18 @@
+'use client'
+
+import { use } from 'react'
+import { useWallet } from '@solana/connector/react'
+import { ListingDetail } from '@/components/ListingDetail'
+import type { Address } from '@solisting/sdk'
+
+export default function ListingPage({ params }: { params: Promise<{ pk: string }> }) {
+ const { pk } = use(params)
+ const { account } = useWallet()
+
+ return (
+