import { ThemeProvider } from 'next-themes';
import type { AppProps } from 'next/app';
import { Provider } from 'react-redux';
import '../styles/globals.css';
import { store } from '../redux/store';

const MyApp = ({ Component, pageProps }: AppProps): JSX.Element => {
  return (
      <ThemeProvider attribute="class" enableSystem={false} defaultTheme="light">
        <Provider store={store}>
        <Component {...pageProps} />
        </Provider>
      </ThemeProvider>
  );
};

export default MyApp;
