import { DynamicField } from "./dynamic-field";

export interface DynamicFormConfig {
    title: string;
    submitLabel: string;
    api?: {
        save: string;     // POST or PUT endpoint
        method: 'POST' | 'PUT';
        bodyKey?: string; // extract this key from form value before sending (e.g. 'academics' sends the array directly)
    };
    fields: DynamicField[];
}