import type { BuilderScreen } from "@/lib/admin/builder/types";
import { 
  buildDefaultHeader,
  buildDefaultTitle,
  buildDefaultSubtitle,
  buildDefaultBottomActionButton,
  buildDefaultNavigation,
  buildDefaultFormFields, 
  buildDefaultFormValidation 
} from "./blocks";

export function buildFormDefaults(id: string): BuilderScreen {
  return {
    id,
    template: "form",
    header: buildDefaultHeader(),
    title: buildDefaultTitle(),
    subtitle: buildDefaultSubtitle(),
    fields: buildDefaultFormFields(),
    validationMessages: buildDefaultFormValidation(),
    bottomActionButton: buildDefaultBottomActionButton(),
    navigation: buildDefaultNavigation(),
  } as BuilderScreen;
}
