//
// Copyright 2020 DXOS.org
//
import React from 'react';
import { useConfig } from '@dxos/react-client';
import { Toolbar } from '@dxos/react-ui';
import { JsonView, PanelContainer } from '../../../components';
import { EdgeSelector, VaultSelector } from '../../../containers';
export const ConfigPanel = ({ vaultSelector = true, edgeSelector = true }) => {
    const config = useConfig();
    return (React.createElement(PanelContainer, { toolbar: React.createElement(Toolbar.Root, null,
            vaultSelector && React.createElement(VaultSelector, null),
            edgeSelector && React.createElement(EdgeSelector, null)) },
        React.createElement(JsonView, { data: config.values })));
};
//# sourceMappingURL=ConfigPanel.js.map