{"size": 775, "ext": "js", "max_stars_repo_path": "src/applications/caregivers/config/pages/hasSecondaryCaregiver.js", "max_stars_repo_name": "techsur-solutions/vets-website", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/applications/caregivers/config/pages/hasSecondaryCaregiver.js", "max_issues_repo_name": "techsur-solutions/vets-website", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/applications/caregivers/config/pages/hasSecondaryCaregiver.js", "max_forks_repo_name": "techsur-solutions/vets-website", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.8076923077, "max_line_length": 91, "alphanum_fraction": 0.7432258065}
import { SecondaryCaregiverInfo } from 'applications/caregivers/components/AdditionalInfo';
import { primaryCaregiverFields } from 'applications/caregivers/definitions/constants';
import definitions from 'applications/caregivers/definitions/caregiverUI';

const { hasSecondaryCaregiverOneUI } = definitions.sharedItems;

const hasSecondaryCaregiverPage = {
  uiSchema: {
    'ui:description': SecondaryCaregiverInfo({
      additionalInfo: true,
      headerInfo: true,
    }),
    [primaryCaregiverFields.hasSecondaryCaregiverOneView]: hasSecondaryCaregiverOneUI,
  },
  schema: {
    type: 'object',
    properties: {
      [primaryCaregiverFields.hasSecondaryCaregiverOneView]: {
        type: 'boolean',
      },
    },
  },
};

export default hasSecondaryCaregiverPage;
