import * as React from 'react'; import I18n from 'i18n-js'; import Box from '../../common/Box'; import { AuthenticationPages } from './AuthenticationSiteSettingsP'; import OAuthForm, { ISiteSettingsOAuthForm } from './OAuthForm'; import Spinner from '../../common/Spinner'; import { DangerText } from '../../common/CustomTexts'; import { IOAuth } from '../../../interfaces/IOAuth'; interface Props { handleSubmitOAuth(oAuth: IOAuth): void; handleUpdateOAuth(id: number, form: ISiteSettingsOAuthForm): void; isSubmitting: boolean; submitError: string; selectedOAuth: IOAuth; page: AuthenticationPages; setPage: React.Dispatch>; } const AuthenticationFormPage = ({ handleSubmitOAuth, handleUpdateOAuth, isSubmitting, submitError, selectedOAuth, page, setPage, }: Props) => ( <> { isSubmitting && } { submitError && {submitError} } ); export default AuthenticationFormPage;