import React from 'react' import { Helmet } from 'react-helmet' import { history } from '../../index' import { isRegistrationAllowed } from '../../utils' export default function Form (props) { return (
FitTrackee - {props.formType}

{`${props.formType.charAt(0).toUpperCase()}${props.formType.slice(1)}`}



{props.formType === 'register' && !isRegistrationAllowed ? (
Registration is disabled.
) : (
props.handleUserFormSubmit(event, props.formType)} > {props.formType === 'register' &&
}
{props.formType === 'register' &&
}
)}
) }