import React from 'react' import styled from 'styled-components' import { Colors, Font } from '../../../../design' import type { ParsedValue } from '../../../../providers/abi/ParsedValue' import { ValueList } from './ValueList' interface Props { network: string | undefined isArray?: boolean items: ParsedValue[] } export function Tuple({ items, isArray, network }: Props) { return ( <> {isArray ? '[' : '{'} {items.length === 0 && <empty {isArray ? 'array' : 'tuple'}>} {items.length > 0 && } {isArray ? ']' : '}'} ) } const Code = styled.span` font-family: ${Font.Code}; ` const Comment = styled.span` font-family: ${Font.Code}; color: ${Colors.Text2}; `