import React from 'react' ; import type { EmbeddableLegacyUrlConflictProps } from '../types' ; import type { InternalProps } from './embeddable_legacy_url_conflict_internal' ; export const getEmbeddableLegacyUrlConflict = async ( internalProps ) : Promise < React . FC < EmbeddableLegacyUrlConflictProps > > => { const { EmbeddableLegacyUrlConflictInternal } = await import ( './embeddable_legacy_url_conflict_internal' ) ; return ( props ) => { return < EmbeddableLegacyUrlConflictInternal { ... { ... internalProps , ... props } } / > ; } ; } ;