//
// Copyright 2022 DXOS.org
//
import React from 'react';
import { useDevices, useIdentity } from '@dxos/react-client/halo';
import { Toolbar } from '@dxos/react-ui';
import { JsonView, PanelContainer } from '../../../components';
import { VaultSelector } from '../../../containers';
export const IdentityPanel = () => {
    const identity = useIdentity();
    const devices = useDevices();
    return (React.createElement(PanelContainer, { toolbar: React.createElement(Toolbar.Root, null,
            React.createElement(VaultSelector, null)) },
        React.createElement(JsonView, { data: { ...identity, devices } })));
};
//# sourceMappingURL=IdentityPanel.js.map