//
// Copyright 2022 DXOS.org
//
import React from 'react';
import { HashRouter } from 'react-router-dom';
import { DevtoolsContextProvider, useRoutes } from '../hooks';
const Routes = () => {
    return useRoutes();
};
/**
 * Entrypoint for app and extension (no direct dependency on Client).
 */
export const Devtools = ({ noRouter }) => {
    if (noRouter) {
        return (React.createElement(DevtoolsContextProvider, null,
            React.createElement(Routes, null)));
    }
    return (React.createElement(DevtoolsContextProvider, null,
        React.createElement(HashRouter, null,
            React.createElement(Routes, null))));
};
export default Devtools;
//# sourceMappingURL=Devtools.js.map