mirror of
https://github.com/duckietm/Nitro-Cool-UI.git
synced 2025-06-21 22:36:58 +00:00
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import { FC } from 'react';
|
|
import { Base, Column, Text } from '../../common';
|
|
|
|
interface LoadingViewProps
|
|
{
|
|
isError: boolean;
|
|
message: string;
|
|
}
|
|
|
|
export const LoadingView: FC<LoadingViewProps> = props =>
|
|
{
|
|
const { isError = false, message = '' } = props;
|
|
|
|
return (
|
|
<Column fullHeight position="relative" className="nitro-loading">
|
|
<Base fullHeight className="container h-100">
|
|
<Column fullHeight alignItems="center" justifyContent="end">
|
|
<Base className="connecting-duck" />
|
|
<Base className="logo" />
|
|
<Column size={ 6 } className="text-center py-4">
|
|
{ isError && (message && message.length) ?
|
|
<Base className="fs-4 text-shadow">{ message }</Base>
|
|
:
|
|
<>
|
|
<Text fontSize={ 4 } variant="white" className="text-shadow">The hotel is loading ...</Text>
|
|
</>
|
|
}
|
|
</Column>
|
|
</Column>
|
|
</Base>
|
|
</Column>
|
|
);
|
|
}
|