import React from 'react'; import dateFnsFormat from 'date-fns/format'; import PropTypes from 'prop-types'; import { useTranslation } from 'react-i18next'; const ExternalAccountRow = (props) => { const { t } = useTranslation(); const { account } = props; return ( { account.providerType } { account.accountId } {dateFnsFormat(new Date(account.createdAt), 'yyyy-MM-dd')} ); }; ExternalAccountRow.propTypes = { account: PropTypes.object.isRequired, openDisassociateModal: PropTypes.func.isRequired, }; export default ExternalAccountRow;