+ {priorityLevel !== PRIORITY_LEVELS.CUSTOM &&
+ priorityLevel !== PRIORITY_LEVELS.DAPP_SUGGESTED ? (
+
+ ) : null}
+ {priorityLevel === PRIORITY_LEVELS.HIGH ? (
+
+
+ {t('highGasSettingToolTipDialog')}
+
+
+ ) : null}
+
+ {toolTipMessage()}
+
+ {priorityLevel === PRIORITY_LEVELS.CUSTOM ? null : (
+
+
+
+ {t('maxBaseFee')}
+
+
+ {maxFeePerGas ?? maxFeePerGasValue}
+
+
+
+
+ {t('priorityFee')}
+
+
+ {maxPriorityFeePerGas ?? maxPriorityFeePerGasValue}
+
+
+
+
+ {t('gasLimit')}
+
+
+ {gasLimit}
+
+
+
+ )}
+
+ );
+};
+
+EditGasToolTip.propTypes = {
+ priorityLevel: PropTypes.string,
+ maxFeePerGas: PropTypes.string,
+ maxPriorityFeePerGas: PropTypes.string,
+ t: PropTypes.func,
+};
+
+export default EditGasToolTip;
diff --git a/ui/components/app/edit-gas-fee-popover/edit-gas-tooltip/edit-gas-tooltip.test.js b/ui/components/app/edit-gas-fee-popover/edit-gas-tooltip/edit-gas-tooltip.test.js
new file mode 100644
index 000000000..23f7188ed
--- /dev/null
+++ b/ui/components/app/edit-gas-fee-popover/edit-gas-tooltip/edit-gas-tooltip.test.js
@@ -0,0 +1,97 @@
+import React from 'react';
+import configureStore from '../../../../store/store';
+import { renderWithProvider } from '../../../../../test/jest';
+import { GasFeeContextProvider } from '../../../../contexts/gasFee';
+import EditGasToolTip from './edit-gas-tooltip';
+
+jest.mock('../../../../store/actions', () => ({
+ disconnectGasFeeEstimatePoller: jest.fn(),
+ getGasFeeEstimatesAndStartPolling: jest
+ .fn()
+ .mockImplementation(() => Promise.resolve()),
+ addPollingTokenToAppState: jest.fn(),
+ getGasFeeTimeEstimate: jest
+ .fn()
+ .mockImplementation(() => Promise.resolve('unknown')),
+}));
+
+const LOW_GAS_OPTION = {
+ maxFeePerGas: '2.010203381',
+ maxPriorityFeePerGas: '1.20004164',
+};
+
+const MEDIUM_GAS_OPTION = {
+ maxFeePerGas: '2.383812808',
+ maxPriorityFeePerGas: '1.5',
+};
+
+const HIGH_GAS_OPTION = {
+ maxFeePerGas: '2.920638342',
+ maxPriorityFeePerGas: '2',
+};
+
+const renderComponent = (props, transactionProps, gasFeeContextProps) => {
+ const mockStore = {
+ metamask: {
+ provider: {},
+ cachedBalances: {},
+ accounts: {
+ '0xAddress': {
+ address: '0xAddress',
+ balance: '0x176e5b6f173ebe66',
+ },
+ },
+ selectedAddress: '0xAddress',
+ featureFlags: { advancedInlineGas: true },
+ advancedGasFee: {
+ maxBaseFee: '1.5',
+ priorityFee: '2',
+ },
+ },
+ };
+
+ const store = configureStore(mockStore);
+
+ return renderWithProvider(
+