import ThemeContext from '../src/context/index'
import { addDecorator } from '@storybook/react';
import { GlobalStyle } from '../src/react/components/utilities/globalStyle';

export const parameters = {
  actions: { argTypesRegex: "^on[A-Z].*" },
  controls: {
    matchers: {
      color: /(background|color)$/i,
      date: /Date$/,
    },
  },
};

export const decorators = [
  (Story) => (
    <>
      <GlobalStyle />
      <ThemeContext>
        <Story />
      </ThemeContext>
    </>
  ),
];