import { ViewerConnectedContainer } from '@self.id/framework' import type { ViewerConnectionState } from '@self.id/framework' import { Button, Text } from 'grommet' import type { ReactNode } from 'react' import { useLogin } from '../hooks' const style = { color: 'white', marginTop: 10, width: 200 } type ConnectPromptProps = { connection: ViewerConnectionState } function ConnectPrompt({ connection }: ConnectPromptProps): JSX.Element { const login = useLogin() const button = connection.status === 'connecting' ? (