Files
grafana/public/app/features/alerting/unified/AlertingNotEnabled.tsx
Hugo Häggmark 2b8c74de2e i18n: removes useTranslate hook (#106556)
* i18n: removes useTranslate hook

* chore: fix duplicate imports

* chore: fix import sorting and hook dependencies
2025-06-12 11:03:52 +02:00

36 lines
985 B
TypeScript

import { NavModel } from '@grafana/data';
import { t } from '@grafana/i18n';
import { Page } from 'app/core/components/Page/Page';
import { withPageErrorBoundary } from './withPageErrorBoundary';
function FeatureTogglePage() {
const navModel: NavModel = {
node: {
text: t('alerting.feature-toggle-page.nav-model.text.alerting-is-not-enabled', 'Alerting is not enabled'),
hideFromBreadcrumbs: true,
subTitle: t(
'alerting.feature-toggle-page.nav-model.subTitle.enable-alerting-grafana-config',
'To enable alerting, enable it in the Grafana config'
),
},
main: {
text: t('alerting.feature-toggle-page.nav-model.text.alerting-is-not-enabled', 'Alerting is not enabled'),
},
};
return (
<Page navModel={navModel}>
<Page.Contents>
<pre>
{`[unified_alerting]
enabled = true
`}
</pre>
</Page.Contents>
</Page>
);
}
export default withPageErrorBoundary(FeatureTogglePage);