text: import React from "react";
  import { Provider } from "react-redux";
  
  import { PureInboxScreen } from "./InBoxScreen";
  
  import { action } from "@storybook/addon-actions";
  import * as TaskListStories from "./TaskList.stories";
  
  // A super-simple mock of a redux store
  const store = {
    getState: () => {
      return {
        tasks: TaskListStories.Default.args.tasks,
      };
    },
    subscribe: () => 0,
    dispatch: action("dispatch"),
  };
  
  export default {
    component: PureInboxScreen,
    decorators: [(story) => <Provider store={store}>{story()}</Provider>], // <- mock of a redux store
    title: "InboxScreen",
  };
  
  const Template = (args) => <PureInboxScreen {...args} />;
  
  export const Default = Template.bind({});
  
  export const error = Template.bind({});
  Error.args = {
    error: "Something",
  };
  