import React from 'react';
import { BrowserRouter, Route } from 'react-router-dom';
// import OHRIDashboard from './ohri-dashboard/ohri-dashboard.component';
import VnOhriLayout from './common/layouts/VnOhriLayout';

export default function Root() {
  return (
    <BrowserRouter basename={window['getOpenmrsSpaBase']()}>
      <Route path="/dashboard/:view?" render={props => <VnOhriLayout match={props.match} />} />
      {/* <Route path="/dashboard/:view?" render={props => <OHRIDashboard match={props.match} />} /> */}
      {/* <Route path="/dashboard/:view?id=:id" render={props => <OHRIDashboard match={props.match} />} /> */}
      {/* <Route path="/patient/:view?" render={props => <PatientIndex view="patient" />} /> */}

    </BrowserRouter>
  );
}
