import { SpacerLG } from '../basic/Text'; import { SessionInput } from '../inputs'; const RecoveryPhraseInput = (props: { recoveryPhrase: string; onSeedChanged: (val: string) => any; handlePressEnter: () => any; stealAutoFocus?: boolean; }) => { return ( ); }; export interface Props { showDisplayNameField: boolean; showSeedField: boolean; stealAutoFocus?: boolean; recoveryPhrase?: string; displayName: string; handlePressEnter: () => any; onSeedChanged?: (val: string) => any; onDisplayNameChanged: (val: string) => any; } export const RegistrationUserDetails = (props: Props) => { if (props.showSeedField && (props.recoveryPhrase === undefined || !props.onSeedChanged)) { throw new Error('if show seed is true, we need callback + value'); } return (
{props.showSeedField && ( <> )}
); };