import { auth } from '@/lib/auth'; import { headers } from 'next/headers'; import { redirect } from 'next/navigation'; import Link from 'next/link'; import { getAdminRequests, getAdminProposals } from '@/features/admin/actions/requests'; import { OpportunityHubClient } from './hub-client'; export default async function AdminRequestsPage() { const session = await auth.api.getSession({ headers: await headers(), }); if (!session?.user) { redirect('/login'); } const requests = await getAdminRequests(); const proposals = await getAdminProposals(); return (
Manage fan requests and community link proposals across all creators.