import { OrderOfMeritDetail } from "@/components/order-of-merit-detail"

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