import { Circle } from 'lucide-react'; import React from 'react'; import { Control } from 'react-hook-form'; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, BooleanField, NumberField, } from '@openzeppelin/ui-components'; import { cn } from '@openzeppelin/ui-utils'; import { EvmRelayerFormData } from './useEvmRelayerOptions'; interface CustomGasParametersProps { control: Control; configMode: string; gasType: string; showGasLimit: boolean; onGasTypeSwitch: (type: string) => void; } export const CustomGasParameters: React.FC = ({ control, configMode, gasType, showGasLimit, onGasTypeSwitch, }) => { return (

Manually configure gas parameters. You must provide either Legacy{' '} (gasPrice) or EIP-1559 (maxFeePerGas + maxPriorityFeePerGas) values.

Select Gas Pricing Method

value && onGasTypeSwitch(value)} className="w-full space-y-3" >
{gasType === 'eip1559' && ( )}
EIP-1559
{gasType === 'eip1559' && ( Selected )}
{gasType === 'legacy' && ( )}
Legacy Gas Price
{gasType === 'legacy' && ( Selected )}
{showGasLimit && (
)}
); };