import React, { Suspense } from 'react'; import { createStyles } from 'antd-style'; import { Skeleton } from 'antd'; const IconSearch = React.lazy(() => import('./IconSearch')); const useStyle = createStyles(({ css }) => ({ searchWrapper: css` display: flex; gap: 16px; > *:first-child { flex: 0 0 328px; } > *:last-child { flex: 1; } `, fallbackWrapper: css` display: flex; flex-wrap: wrap; justify-content: space-between; > * { flex: 0 0 15%; margin: 3px 0; } `, skeletonWrapper: css` text-align: center; > * { width: 100% !important; } `, })); const IconSearchFallback = () => { const { styles } = useStyle(); return ( <>