import React from 'react'; import PropTypes from 'prop-types'; import Box from '../../../ui/box'; import { Text } from '../../../component-library'; import { FLEX_DIRECTION, OVERFLOW_WRAP, TextVariant, } from '../../../../helpers/constants/design-system'; const SignatureRequestSIWEMessage = ({ data }) => { return ( {data.map(({ label, value }, i) => ( {label} {value} ))} ); }; SignatureRequestSIWEMessage.propTypes = { /** * The data array that contains objects of data about the message */ data: PropTypes.arrayOf( PropTypes.shape({ /** * The label or title of the value data */ label: PropTypes.string, /** * The value of the data */ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), }), ), }; export default React.memo(SignatureRequestSIWEMessage);