text: // import set from 'platform/utilities/data/set';
  import React from 'react';
  import { transformForSubmit } from 'platform/forms-system/src/js/helpers';
  
  export function prefillTransformer(pages, formData, metadata) {
    // TODO: enable this to implement the review card UI for verified users
    // TODO: add 'state' to arguments
  
    // const { verified } = state.user.profile;
  
    // const newFormData = set('view:isVerified', !!verified, formData);
  
    return {
      metadata,
      formData,
      pages,
    };
  }
  
  export function transform(formConfig, form) {
    const formData = transformForSubmit(formConfig, form);
    return JSON.stringify({
      educationBenefitsClaim: {
        form: formData,
      },
    });
  }
  
  /* eslint-disable jsx-a11y/no-noninteractive-tabindex */
  export const tabIndexedTitle = title => (
    <div
      className="schemaform-block-subtitle schemaform-block-title"
      tabIndex="0"
    >
      <p>{title}</p>
    </div>
  );
  /* eslint-enable */
  