title: Call a function which returns output with all the parameters
body: <p>In notifications.js I have a code which takes message parameter and then return the whole output when I call from Flavor.js using http.notificationa(res.data);</p>
  
  <p>But it is not giving desired output to me. Can you tell me what is wrong with this code,please?</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>import { store as notifications } from "react-notifications-component";
  
  function notificationa(message) {
    notifications.addNotification({
      message: message,
      type: "success",
      insert: "top",
      container: "bottom-right",
      dismiss: {
        duration: 5000
      }
    });
  }
  
  export default notificationa;
  </code></pre>
  
  <p>Flavor.js</p>
  
  <pre><code>import http from "./../Common/notifications";
  http.notificationa(res.data);
  </code></pre>