import { ModuleScaffold } from "@/components/admin/module-scaffold";
import { DrawSubnav } from "@/modules/draws/draw-subnav";

export default async function AdminDrawSegmentLayout(props: {
  children: React.ReactNode;
  params: Promise<{ drawId: string }>;
}) {
  const { drawId } = await props.params;

  return (
    <ModuleScaffold>
      <DrawSubnav drawId={drawId} />
      {props.children}
    </ModuleScaffold>
  );
}
