import * as React from 'react'; import { css, cx } from '@neliosoft/inlexa/css'; import { _x } from '@neliosoft/inlexa/i18n'; import { colors } from '@neliosoft/inlexa/theme'; import { isValidUuid } from '@neliosoft/inlexa/utils'; import { TextControl } from '../generic'; import { Button, Div } from '../html'; export type LoginProps = { readonly className?: string; readonly error?: string; readonly token: string; readonly mode: 'setup' | 'validating' | 'error'; readonly onTokenChange: ( token: string ) => void; readonly onSubmit: () => void; }; export const Login = ( { className, mode, token, error, onTokenChange, onSubmit, }: LoginProps ): JSX.Element => (