import { getTrashedNotes, getTrashedNotebooks } from '@/app/actions/notes'
import { TrashClient } from './trash-client'

export const dynamic = 'force-dynamic'

export default async function TrashPage() {
  const [notes, notebooks] = await Promise.all([
    getTrashedNotes(),
    getTrashedNotebooks(),
  ])

  return <TrashClient initialNotes={notes} initialNotebooks={notebooks} />
}
