16 lines
373 B
TypeScript
16 lines
373 B
TypeScript
import React from 'react';
|
|
import { Query } from './Query';
|
|
|
|
interface Props {
|
|
withQuery({ gasLimit }: { gasLimit: string | null }): React.ReactElement<any>;
|
|
}
|
|
|
|
export const GasQuery: React.SFC<Props> = ({ withQuery }) => (
|
|
<Query
|
|
params={['limit', 'gaslimit']}
|
|
withQuery={({ limit, gaslimit }) =>
|
|
withQuery({ gasLimit: limit || gaslimit })
|
|
}
|
|
/>
|
|
);
|