import React from 'react'; import { Speed } from '@openzeppelin/relayer-sdk'; import { RadioGroup, RadioGroupItem } from '@openzeppelin/ui-components'; interface SpeedSelectionProps { selectedSpeed: Speed | undefined; onSpeedChange: (speed: Speed) => void; } const speedOptions = [ { value: Speed.FASTEST, label: 'Fastest', description: 'Maximum priority, highest gas prices', }, { value: Speed.FAST, label: 'Fast', description: 'High priority, recommended for most transactions', recommended: true, }, { value: Speed.AVERAGE, label: 'Average', description: 'Standard priority, balanced cost', }, { value: Speed.SAFE_LOW, label: 'Safe Low', description: 'Lower priority, minimal gas cost', }, ]; export const SpeedSelection: React.FC = ({ selectedSpeed, onSpeedChange }) => { return ( onSpeedChange(value as Speed)} >
{speedOptions.map((option) => ( ))}
); };