{"size": 439, "ext": "js", "max_stars_repo_path": "src/components/Toast/SignOut/Success/index.js", "max_stars_repo_name": "WaSa42/lev-yashin", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/Toast/SignOut/Success/index.js", "max_issues_repo_name": "WaSa42/lev-yashin", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/Toast/SignOut/Success/index.js", "max_forks_repo_name": "WaSa42/lev-yashin", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.1052631579, "max_line_length": 49, "alphanum_fraction": 0.6150341686}
import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';

const Success = ({ name, t }) => (
    <div className="toast-sign-out-success">
        <p className="mb-0">
            {t('signOut.success.text', { name })}
        </p>
    </div>
);

Success.propTypes = {
    name: PropTypes.string.isRequired,
    t: PropTypes.func.isRequired,
};

export default translate(['toast'])(Success);
