import React from 'react'; import { notFound } from 'next/navigation'; import { MapPin, Users, ArrowLeft } from 'lucide-react'; import Link from 'next/link'; import { api, Campaign } from '@/lib/api'; import VideoPlayer from './VideoPlayer'; import DonationCard from '../../components/DonationCard'; export default async function StreamDetailPage({ params }: { params: { id: string } }) { let stream; let campaigns: Campaign[] = []; try { [stream, campaigns] = await Promise.all([ api.getStream(params.id), api.getCampaigns(), ]); } catch { notFound(); } return (
{/* Back */} Back to all cameras {/* Status bar */}
{stream.status === 'live' && } {stream.status === 'live' ? 'Live' : 'Offline'} {stream.location && ( {stream.location} )} {stream.viewerCount > 0 && ( {stream.viewerCount.toLocaleString()} watching )}
{/* Main video + info */}

{stream.name}

{stream.description && (

{stream.description}

)}
{/* Wildlife facts panel */}

Burrowing Owl Facts

  • Burrowing owls are the official city bird of Cape Coral, FL.
  • Unlike most owls, they are active during the day and nest underground.
  • They are a Species of Special Concern in Florida — development threatens their habitat.
  • CCFW monitors over 2,000 active burrow sites across Cape Coral.
{/* Sidebar: Donate */}

Support the Cameras

These cameras run 24/7 thanks to donations from wildlife lovers like you.

{campaigns.slice(0, 1).map((c) => ( ))}
); }