import {AppProps} from 'next/app';
import {SessionProvider} from "next-auth/react";
import { library } from "@fortawesome/fontawesome-svg-core";
import { config } from '@fortawesome/fontawesome-svg-core';
import '@fortawesome/fontawesome-svg-core/styles.css';
import {faBagShopping, faRightToBracket, faUserPlus} from "@fortawesome/free-solid-svg-icons";

config.autoAddCss = false;

library.add(faRightToBracket);
library.add(faUserPlus);
library.add(faBagShopping);

import './styles.css';

function CustomApp({Component, pageProps: {session, ...pageProps}}: AppProps) {
  return (
    <SessionProvider session={session}>
      <Component {...pageProps} />
    </SessionProvider>
  );
}

export default CustomApp;
