import { getArchivedNotes } from '@/app/actions/notes'
import { ArchiveHeader } from '@/components/archive-header'
import { ArchiveClient } from '@/components/archive-client'

export const dynamic = 'force-dynamic'

export default async function ArchivePage() {
  const notes = await getArchivedNotes()

  return (
    <main className="container mx-auto px-4 py-8 max-w-7xl">
      <ArchiveHeader />
      <ArchiveClient notes={notes} />
    </main>
  )
}
