{"size": 485, "ext": "js", "max_stars_repo_path": "build/toast.js", "max_stars_repo_name": "guillaumejparis/react-semantic-toasts", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "build/toast.js", "max_issues_repo_name": "guillaumejparis/react-semantic-toasts", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "build/toast.js", "max_forks_repo_name": "guillaumejparis/react-semantic-toasts", "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": 44.0909090909, "max_line_length": 287, "alphanum_fraction": 0.6989690722}
'use strict';Object.defineProperty(exports, "__esModule", { value: true });exports.store = exports.toast = undefined;var _store = require('./store');var _store2 = _interopRequireDefault(_store);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}

var store = new _store2.default();
var id = 0;

function toast(item, cb) {
    id += 1;
    store.add(Object.assign({ id: id, onClose: cb }, item));
}exports.

toast = toast;exports.store = store;