import { FormFieldDefaults } from '@hubspot/cms-components/fields';


export type FormBaseProps = {
  variant?: string;
};

export type FormProps = (FormPropsWithField | FormPropsWithoutField) & FormBaseProps;

export type FormPropsWithoutField = {
  formField?: never;
  formId: string;
  formVersion: 'v4' | 'v3' | 'v2' | '';
};

export type FormPropsWithField = {
  formField: typeof FormFieldDefaults;
  formId?: never;
  formVersion?: never;
};

export type ContentFieldsProps = {
  formIdLabel?: string;
  formIdName?: string;
  formIdDefault?: typeof FormFieldDefaults;
};

export type StyleFieldsProps = {
  formVariantLabel?: string;
  formVariantName?: string;
  formVariantDefault?: { variant_name: string };
};
