"use client"

import { notFound } from "next/navigation"

import { getArticlesConfig } from "@/components/articles/articles-registry"
import { TrashPage } from "@/components/trash/trash-page"

type ArticlesSectionClientProps = {
  section: string
}

export function ArticlesSectionClient({ section }: ArticlesSectionClientProps) {
  const config = getArticlesConfig(section)

  if (!config) {
    notFound()
  }

  return <TrashPage config={config} />
}
