Loadable.tsx 488 B

123456789101112131415
  1. import React from 'react'
  2. import loadable from 'utils/loadable'
  3. import { Skeleton } from 'antd'
  4. export const Display = loadable(() => import('./'), {
  5. fallback: <Skeleton active={true} paragraph={{ rows: 15 }} />
  6. })
  7. export const DisplayEditor = loadable(() => import('./Editor'), {
  8. fallback: <Skeleton active={true} paragraph={{ rows: 15 }} />
  9. })
  10. export const DisplayPreview = loadable(() => import('./Preview'), {
  11. fallback: <Skeleton active={true} paragraph={{ rows: 15 }} />
  12. })