import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './css/custom.css'
import reportWebVitals from './reportWebVitals';
import { NotificationsProvider } from '@mantine/notifications';
import  Notifications  from './components/Notifications.js'
import { MantineProvider } from '@mantine/core';

//setup api
//const backendPort = process.env.REACT_APP_BACKEND_PORT
//console.log("BACKEND PORT: ", backendPort)

ReactDOM.render(
  <React.StrictMode>
    <MantineProvider withNormalizeCSS withGlobalStyles>
      <NotificationsProvider> 
        <Notifications />
          <App />
      </NotificationsProvider>
    </MantineProvider>
  </React.StrictMode>,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
