{"version":3,"file":"AlertingFeatureTogglePage.70bdacebef1295a51566.js","mappings":"6IAOO,MAAMA,EAAeC,IAC1B,MAAMC,GAAWC,EAAAA,EAAAA,cAAaC,GAAsBA,EAAMF,WAC1D,OAAOG,EAAAA,EAAAA,GAAYH,EAAUD,K,8FCJhB,SAASK,IACtB,MAAMC,GAAWP,EAAAA,EAAAA,GAAY,cAE7B,OACE,SAAC,IAAD,CAAMO,SAAUA,EAAhB,gBACE,UAAC,aAAD,YACE,oDADF,wDAGE,0BACE,yBACI,2CAKN,kDAEE,yBACI","sources":["webpack://grafana/./public/app/core/hooks/useNavModel.ts","webpack://grafana/./public/app/features/alerting/FeatureTogglePage.tsx"],"sourcesContent":["import { useSelector } from 'react-redux';\n\nimport { NavModel } from '@grafana/data';\nimport { StoreState } from 'app/types/store';\n\nimport { getNavModel } from '../selectors/navModel';\n\nexport const useNavModel = (id: string): NavModel => {\n const navIndex = useSelector((state: StoreState) => state.navIndex);\n return getNavModel(navIndex, id);\n};\n","import React from 'react';\n\nimport Page from 'app/core/components/Page/Page';\nimport { useNavModel } from 'app/core/hooks/useNavModel';\n\nexport default function FeatureTogglePage() {\n const navModel = useNavModel('alert-list');\n\n return (\n \n \n

Alerting is not enabled

\n To enable alerting, enable it in the Grafana config:\n
\n
\n            {`[unified_alerting]\nenable = true\n`}\n          
\n
\n
\n For legacy alerting\n
\n            {`[alerting]\nenable = true\n`}\n          
\n
\n
\n
\n );\n}\n"],"names":["useNavModel","id","navIndex","useSelector","state","getNavModel","FeatureTogglePage","navModel"],"sourceRoot":""}