"use client"

import { notFound } from "next/navigation"

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

type TrashSectionClientProps = {
  section: string
}

export function TrashSectionClient({ section }: TrashSectionClientProps) {
  const config = getTrashConfig(section)

  if (!config) {
    notFound()
  }

  return <TrashPage config={config} />
}
