import * as React from 'react' ; import { injectIntl , WrappedComponentProps as IntlShapeProps } from 'react-intl' ; import { ISubSectionProps , SubSectionDivider as SubSectionDividerComponent } from '@opencrvs/components/lib/forms' ; import { Omit } from '@opencrvs/client/src/utils' ; import { formMessages } from '@client/i18n/messages' ; export const SubSectionDivider = injectIntl ( function FormInputField ( props ) { return ( < SubSectionDividerComponent { ... props } optionalLabel = { props . intl . formatMessage ( formMessages . optionalLabel ) } / > ) ; } ) ;