ProfileFeatureTogglePage.9816107c99bb310dbad0.js.map 1.5 KB

1
  1. {"version":3,"file":"ProfileFeatureTogglePage.9816107c99bb310dbad0.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,oBAE7B,OACE,SAAC,IAAD,CAAMO,SAAUA,EAAhB,gBACE,UAAC,aAAD,YACE,oDADF,8CAGE,0BACE,yBACI","sources":["webpack://grafana/./public/app/core/hooks/useNavModel.ts","webpack://grafana/./public/app/features/profile/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('profile-settings');\n\n return (\n <Page navModel={navModel}>\n <Page.Contents>\n <h1>Profile is not enabled.</h1>\n Enable profile in the Grafana config file.\n <div>\n <pre>\n {`[profile]\nenable = true\n`}\n </pre>\n </div>\n </Page.Contents>\n </Page>\n );\n}\n"],"names":["useNavModel","id","navIndex","useSelector","state","getNavModel","FeatureTogglePage","navModel"],"sourceRoot":""}