import { OrgPlayers } from "@/components/org-players"

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