import React from 'react' ; import { DecoratorFn } from '@storybook/react' ; import { ServicesProvider } from '../public/services' ; import { servicesFactory } from '../public/services/storybook' ; /**
 * A Storybook decorator that provides the Shared UX `ServicesProvider` with Storybook-specific
 * implementations to stories.
 */ export const servicesDecorator = ( storyFn ) => ( < ServicesProvider { ... servicesFactory ( { } ) } > { storyFn ( ) } < /ServicesProvider>);