function composeStory(story, componentAnnotations, projectAnnotations, exportsName) {
  return Object(_storybook_store__WEBPACK_IMPORTED_MODULE_0__[/* composeStory */ "b"])(story, componentAnnotations, projectAnnotations, defaultProjectAnnotations, exportsName);
}
Function that will receive a story along with meta (e.g. a default export from a .stories file)
and optionally projectAnnotations e.g. (import * from '../.storybook/preview)
and will return a composed component that has all args/parameters/decorators/etc combined and applied to it.


It's very useful for reusing a story in scenarios outside of Storybook like unit testing.

Example:
```jsx
import { render } from '@testing-library/react';
import { composeStory } from '@storybook/react';
import Meta, { Primary as PrimaryStory } from './Button.stories';

const Primary = composeStory(PrimaryStory, Meta);

test('renders primary button with Hello World', () => {
  const { getByText } = render(<Primary>Hello world</Primary>);
  expect(getByText(/Hello world/i)).not.toBeNull();
});
```

@param story
@param componentAnnotations - e.g. (import Meta from './Button.stories')
@param [projectAnnotations] - e.g. (import * as projectAnnotations from '../.storybook/preview') this can be applied automatically if you use `setProjectAnnotations` in your setup files.
@param [exportsName] - in case your story does not contain a name and you want it to have a name.