overleaf/services/web/test/frontend/features/source-editor/helpers/test-container.tsx
Alf Eaton d319fe72a9 Add Suspense to test element container (#17520)
GitOrigin-RevId: 0d7702289870a1074cdf4bd907b55fa6f32b8457
2024-03-26 09:04:20 +00:00

12 lines
281 B
TypeScript

import { FC, ComponentProps, Suspense } from 'react'
const style = { width: 785, height: 785 }
export const TestContainer: FC<ComponentProps<'div'>> = ({
children,
...rest
}) => (
<div style={style} {...rest}>
<Suspense fallback={null}>{children}</Suspense>
</div>
)