// In your functional component or elsehwere
const onEstimateReceiver = (estimationData) => {
console.log(
'This is the cost estimate for all the batches',
estimationData,
);
}
// In your render or as a component...
<EtherspotBatches onEstimated={onEstimateReceiver}>
<EtherspotBatch>
{/*
Within the <EtherspotBatch /> component,
you can add 1 or more <EtherspotTransaction />
tags to be performed together and at the same
time (i.e. within the same "batch").
*/}
</EtherspotBatch>
</EtherspotBatches>