import { addDecorator } from '@storybook/react';
import { withKnobs } from '@storybook/addon-knobs';
import { withInfo } from '@storybook/addon-info';

import { withTestTwrapper } from '../../src/stories/test-wrapper.component';

if (process.env.NODE_ENV === 'test') {
  addDecorator(withTestTwrapper);
} else {
  addDecorator(withInfo);
  addDecorator(withKnobs);
}
