import { FC } from 'react'; import { Base, Column, Text } from '../../common'; interface LoadingViewProps { isError?: boolean; message?: string; } export const LoadingView: FC = props => { const { isError = false, message = '' } = props; return ( { !isError && } { isError && (message && message.length) ? Something went wrong while loading { message } : The hotel is loading ... } ); };