import { OrderOfMeritList } from "@/components/order-of-merit-list"

export default async function OrderOfMeritListPage({
  params,
  searchParams,
}: {
  params: Promise<{ id: string }>
  searchParams: Promise<{ name?: string }>
}) {
  const { id } = await params
  const { name } = await searchParams
  return <OrderOfMeritList organizationId={id} orgName={name ?? "Organisasjon"} />
}
