import React, { useState } from 'react';
import { Options } from '../../interfaces';
type Props = {
setRegistrationIsVisible: ( visible: boolean ) => void;
onStep: ( requestedStep: string ) => void;
registrationName: string;
registrationEmail: string;
options: Options;
};
export const Authenticated: React.FC< Props > = ( {
setRegistrationIsVisible,
onStep,
options,
}: Props ) => {
const [ screen, setScreen ] = useState< string >( 'account' );
return (
{ screen === 'account' ? (
Account registered
) : (
Are you sure you want to disconnect with we
{ options.product }?
) }
);
};