import { ModuleScaffold } from "@/components/admin/module-scaffold";
import { DrawDetailShell } from "@/modules/draws/draw-detail-shell";

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

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