import React from 'react' ; import type { LegacyUrlConflictProps } from '../types' ; import type { InternalProps } from './legacy_url_conflict_internal' ; export const getLegacyUrlConflict = async ( internalProps ) : Promise < React . FC < LegacyUrlConflictProps > > => { const { LegacyUrlConflictInternal } = await import ( './legacy_url_conflict_internal' ) ; return ( props ) => { return < LegacyUrlConflictInternal { ... { ... internalProps , ... props } } / > ; } ; } ;