text: export const STATE_DEFAULT = {
    step: 1,
    stepLength: 1,
    submitting: false,
    loading: false,
    dataset: {},
    form: {
      // STEP 1
      title: '',
      summary: '',
      description: '',
      content: '',
      url: '',
      // Images
      thumbnail: '',
      // States
      published: false
    }
  };
  
  export const FORM_ELEMENTS = {
    elements: {
    },
    validate() {
      const elements = this.elements;
      Object.keys(elements).forEach((k) => {
        elements[k].validate();
      });
    },
    isValid() {
      const elements = this.elements;
      const valid = Object.keys(elements)
        .map(k => elements[k].isValid())
        .filter(v => v !== null)
        .every(element => element);
  
      return valid;
    }
  };
  