import React, { Suspense } from 'react'; import { Skeleton } from 'antd'; import { createStyles } from 'antd-style'; const IconSearch = React.lazy(() => import('./IconSearch')); const useStyle = createStyles(({ token, css }) => ({ searchWrapper: css` display: flex; gap: ${token.padding}px; > *: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: ${token.marginXXS}px 0; } `, skeletonWrapper: css` text-align: center; > * { width: 100% !important; } `, })); const IconSearchFallback: React.FC = () => { const { styles } = useStyle(); return ( <>