import { configure } from '@storybook/react';
import '../dist/assets/styles/index.scss';

// automatically import all files ending in *.stories.js
//configure(require.context('../stories', true, /\.stories\.js$/), module);

import { addParameters } from '@storybook/react';
import { DocsPage, DocsContainer } from '@storybook/addon-docs/blocks';

addParameters({
  docs: {
    container: DocsContainer,
    page: DocsPage,
  },
});

const req = require.context("../src", true, /\.stories.(js|mdx)$/);

function loadStories() {  
  req.keys().forEach(filename => req(filename));
}

configure(loadStories, module)