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