vega-frontend-monorepo/apps/trading/components/viewing-banner/index.tsx

10 lines
317 B
TypeScript
Raw Normal View History

2023-01-19 11:16:21 +00:00
import { ViewingAsBanner } from '@vegaprotocol/ui-toolkit';
import { useVegaWallet } from '@vegaprotocol/wallet';
export const ViewingBanner = () => {
const { isReadOnly, pubKey, disconnect } = useVegaWallet();
return isReadOnly ? (
<ViewingAsBanner pubKey={pubKey} disconnect={disconnect} />
) : null;
2023-01-19 11:16:21 +00:00
};