import { Theme } from '@ulangi/ulangi-common/enums' ; import { ObservableScreenLayout } from '@ulangi/ulangi-observable' ; import { observer } from 'mobx-react' ; import * as React from 'react' ; import { View } from 'react-native' ; import { DefaultText } from '../common/DefaultText' ; import { SetManagementLoadingMessageStyles , setManagementLoadingMessageResponsiveStyles , } from './SetManagementLoadingMessage.style' ; export interface SetManagementLoadingMessageProps { theme : Theme ; screenLayout : ObservableScreenLayout ; loadingMessage : string ; } @ observer export class SetManagementLoadingMessage extends React . Component < SetManagementLoadingMessageProps > { private get styles ( ) : SetManagementLoadingMessageStyles { return setManagementLoadingMessageResponsiveStyles . compile ( this . props . screenLayout , this . props . theme ) ; } public render ( ) { return ( < View style = { this . styles . loading_message_container } > < DefaultText style = { this . styles . loading_message } > { this . props . loadingMessage } < /DefaultText> < /View>); } }