import { css } from '@emotion/css'; import React from 'react'; import { GrafanaTheme } from '@grafana/data'; import { Alert, useStyles } from '@grafana/ui'; import { getMessageFromError } from 'app/core/utils/errors'; import { DashboardInitError, AppNotificationSeverity } from 'app/types'; export interface Props { initError?: DashboardInitError; } export const DashboardFailed = ({ initError }: Props) => { const styles = useStyles(getStyles); if (!initError) { return null; } return (