import type { FC } from 'react'; import React, { Suspense } from 'react'; import { createStyles } from 'antd-style'; import { Skeleton } from 'antd'; import type { BehaviorMapProps } from './BehaviorMap'; const InternalBehaviorMap = React.lazy(() => import('./BehaviorMap')); const useStyle = createStyles(({ token, css }) => ({ fallback: css` width: 100%; > * { width: 100%; border-radius: 8px; } `, placeholder: css` color: ${token.colorTextDescription}; font-size: 16px; `, })); const BehaviorMapFallback = () => { const { styles } = useStyle(); return (
正在载入行为模式地图...
); }; const BehaviorMap: FC = (props) => ( }> ); export default BehaviorMap;