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