import React from 'react' import styled from 'styled-components' import type { ParsedValue } from '../../../../providers/abi/ParsedValue' import { Address } from './Address' import { Table } from './Table' import { Property } from './Property' import { ValueItem } from './ValueItem' import { Method } from './Method' interface Props { name: string address: string network: string | undefined data: ParsedValue[] value: ParsedValue | undefined previous: ParsedValue | undefined current: ParsedValue | undefined } export function CallDisplay(props: Props) { const showDiff = !!props.previous || !!props.current return (
{props.value && ( )} {showDiff && ( )} {showDiff && ( )} ) } const SmallTable = styled(Table)` position: relative; line-height: 1.25; `