page.tsx 779 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Hong Kong City Command Center.
  3. * Server component that fetches HK-specific signals and live markets.
  4. */
  5. import { getSignals } from '@/lib/queries';
  6. import { fetchLiveMarkets } from '@/lib/polymarket-api';
  7. import { HongKongClient } from './HongKongClient';
  8. export const dynamic = 'force-dynamic';
  9. export default async function HongKongPage() {
  10. const [signals, allMarkets] = await Promise.all([
  11. getSignals(undefined, 'hong_kong'),
  12. fetchLiveMarkets().catch(() => []),
  13. ]);
  14. // Filter to Hong Kong markets only
  15. const markets = allMarkets.filter(
  16. (m) => m.city.toLowerCase().includes('hong kong'),
  17. );
  18. return (
  19. <div className="p-6 space-y-6 max-w-[1600px] mx-auto">
  20. <HongKongClient signals={signals} markets={markets} />
  21. </div>
  22. );
  23. }