import { t } from '@vegaprotocol/react-helpers'; import { Button } from '@vegaprotocol/ui-toolkit'; import { useGlobalStore } from '../../stores'; export const AppFailure = ({ title, error, }: { title: string; error?: string | null; }) => { const { setNodeSwitcher } = useGlobalStore((store) => ({ nodeSwitcherOpen: store.nodeSwitcherDialog, setNodeSwitcher: (open: boolean) => store.update({ nodeSwitcherDialog: open }), })); const nonIdealWrapperClasses = 'h-full min-h-screen flex items-center justify-center'; return (

{title}

{error &&

{error}

}
); };