"use client"; import { RFAList } from '@/components/rfas/list'; import { Button } from '@/components/ui/button'; import Link from 'next/link'; import { Plus, Loader2 } from 'lucide-react'; import { useRFAs } from '@/hooks/use-rfa'; import { useSearchParams } from 'next/navigation'; import { Pagination } from '@/components/common/pagination'; import { Suspense } from 'react'; function RFAsContent() { const searchParams = useSearchParams(); const page = parseInt(searchParams.get('page') || '1'); const statusId = searchParams.get('status') ? parseInt(searchParams.get('status')!) : undefined; const search = searchParams.get('search') || undefined; const projectId = searchParams.get('projectId') ? parseInt(searchParams.get('projectId')!) : undefined; const { data, isLoading, isError } = useRFAs({ page, statusId, search, projectId }); return ( <> {/* RFAFilters component could be added here if needed */} {isLoading ? (
) : isError ? (
Failed to load RFAs.
) : ( <>
)} ); } export default function RFAsPage() { return (

RFAs (Request for Approval)

Manage approval requests and submissions

}> ); }