import { ReaderShell } from "./_components/reader-shell"

export default async function ReaderPage({
  searchParams,
}: {
  searchParams: Promise<{ folder?: string; feed?: string; custom_feed?: string }>
}) {
  const resolvedSearchParams = await searchParams

  return (
    <ReaderShell
      feedFilter="all"
      folderIdentifier={resolvedSearchParams.folder}
      feedIdentifier={resolvedSearchParams.feed}
      customFeedIdentifier={resolvedSearchParams.custom_feed}
    />
  )
}
