import React from 'react' ; import type { SpaceListProps } from './types' ; export const getSpaceListComponent = async ( ) : Promise < React . FC < SpaceListProps > > => { const { SpaceListInternal } = await import ( './space_list_internal' ) ; return ( props ) => { return < SpaceListInternal { ... props } / > ; } ; } ;