import React from 'react';
import ReactDOM from 'react-dom';
import { ConfiguratorApp, MainPage } from './App';
import { BrowserRouter as Router } from 'react-router-dom';

ReactDOM.render(
  <Router>
    <ConfiguratorApp
      configSettings={{
        publicToken: '8f249d46-8609-4480-ab58-d3f7c62b2350',
        orgId: '8f670b9f-76f4-4518-8d63-5eb6a728ed7d',
        assetId: '1e730ee6-e684-428c-84e7-264675d001c3',
        threekitEnviroment: 'preview',
      }}
      ReturnToMainPage={() => {
        console.log(123);
      }}
      returnCartInfo={(info: any) => {
        console.log('info: ', info);
      }}
      // customSettings={{
      //   Tire: `Baja Boss M/T Radial 35"`,
      //   Wheels: `WHL Quad Rubicon Xtreme Silver`,
      //   'Rear Bumper': 'WBO QRC',
      // }}
    />
  </Router>,
  document.getElementById('app')
);
