/// import { IFormErrorInfo } from '../../util/model-validator'; export interface IEditableSectionProps { modelId?: string; title?: string; onChange(model: {}): void; onCancel?(): void; model: {}; children(model: any, editMode: boolean, setModel: (model: any) => void, invalidFields: IFormErrorInfo[]): React.ReactNode; className?: string; enableValidation?: boolean; validator(model: any): IFormErrorInfo[]; testId?: string; } export interface IEditableSectionState { model: {}; oldCopy: {}; editMode?: boolean; }