{"size": 681, "ext": "js", "max_stars_repo_path": "packages/forma-36-codemod/transforms/__testfixtures__/v4/v4-notification.output.js", "max_stars_repo_name": "ronaldronson/forma-36", "max_stars_repo_stars_event_min_datetime": "2022-02-09T10:18:59.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-09T10:18:59.000Z", "max_issues_repo_path": "packages/forma-36-codemod/transforms/__testfixtures__/v4/v4-notification.output.js", "max_issues_repo_name": "sachinsawant71/forma-36", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "packages/forma-36-codemod/transforms/__testfixtures__/v4/v4-notification.output.js", "max_forks_repo_name": "sachinsawant71/forma-36", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.4571428571, "max_line_length": 66, "alphanum_fraction": 0.7165932452}
import { Notification } from "@contentful/f36-components";
const notificationText = 'Some text';
const duration = 3000;
Notification.success(notificationText, {
  duration,
});

Notification.error(notificationText, {
  duration,
});

Notification.warning(notificationText, {
  duration,
});

Notification.warning('Notification that should not be repeated', {
  duration,
  id: 'some-concrete-notification',
});

const otherProps = {
  title: 'Some title',
};
Notification.success(notificationText, {
  duration,
  withClose: true,
  onClose: () => {},
  ...otherProps,
});

const placement = 'bottom';
Notification.setPlacement(placement, { offset: 0 });

Notification.closeAll();
