mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
18 lines
380 B
TypeScript
18 lines
380 B
TypeScript
import React from 'react';
|
|
import type { AbiParameter } from 'viem';
|
|
|
|
interface Props {
|
|
abiParameter: AbiParameter;
|
|
}
|
|
|
|
const ItemLabel = ({ abiParameter }: Props) => {
|
|
return (
|
|
<>
|
|
{ abiParameter.name && <span className="font-medium">{ abiParameter.name } </span> }
|
|
<span>({ abiParameter.type }) : </span>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default React.memo(ItemLabel);
|