2021-12-21 17:41:02 +05:00
|
|
|
|
import { LoadingOutlined } from '@ant-design/icons'
|
2022-01-24 21:16:50 +05:00
|
|
|
|
import { CSSProperties, memo } from 'react'
|
2021-12-21 17:41:02 +05:00
|
|
|
|
|
2022-01-24 21:16:50 +05:00
|
|
|
|
import { Flex } from '@components/Grid'
|
|
|
|
|
|
|
|
|
|
export type SuspenseFallbackProps = {
|
|
|
|
|
style?: CSSProperties
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const SuspenseFallback = memo<SuspenseFallbackProps>(({ style }) => (
|
2021-12-21 17:41:02 +05:00
|
|
|
|
<Flex style={{ justifyContent: 'center', alignItems: 'center', minHeight: '400px', ...style }}>
|
|
|
|
|
<LoadingOutlined />
|
|
|
|
|
<div style={{ marginLeft: '10px' }}>Страница загружается, пожалуйста, подождите...</div>
|
|
|
|
|
</Flex>
|
2022-01-24 21:16:50 +05:00
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
export default SuspenseFallback
|