import { ViewingAsBanner } from '@vegaprotocol/ui-toolkit'; import { useVegaWallet } from '@vegaprotocol/wallet-react'; export const ViewingBanner = () => { const { isReadOnly, pubKey, disconnect } = useVegaWallet(); return isReadOnly ? ( ) : null; };