import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { NotificationsProvider } from '@mantine/notifications';
import { BrowserRouter } from 'react-router-dom';

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

ReactDOM.render(
  <React.StrictMode>
    <NotificationsProvider>
      <BrowserRouter>   
        <App />
      </BrowserRouter> 
    </NotificationsProvider>
  </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();
