import type {Preview} from '@storybook/angular';
import {moduleMetadata} from '@storybook/angular';
import {Store, StoreModule} from '@ngrx/store';
import {reducers} from '../src/app/reducers';
import 'remixicon/fonts/remixicon.css';

const preview: Preview = {
  parameters: {
    actions: {argTypesRegex: '^on[A-Z].*'},
    controls: {
      matchers: {
        color: /(background|color)$/i,
        date: /Date$/i,
      },
    },
  },
  decorators: [
    moduleMetadata({
      imports: [
        StoreModule.forRoot(reducers),
      ],
      providers: [
        Store
      ]
    })
  ]
};

export default preview;
