import { ReactElement, useMemo } from 'react'; import CommonFenceInputGroup from './CommonFenceInputGroup'; import Spinner from '../Spinner'; const EditFenceInputGroup = >({ fenceId, fenceTemplate: externalFenceTemplate, formUtils, loading: isExternalLoading, previousFenceName, previousFenceParameters, }: EditFenceInputGroupProps): ReactElement => { const content = useMemo( () => isExternalLoading ? ( ) : ( ), [ externalFenceTemplate, fenceId, formUtils, isExternalLoading, previousFenceName, previousFenceParameters, ], ); return <>{content}; }; export default EditFenceInputGroup;