Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
plugins
/
components
/
File Content:
PluginPageContext.tsx
import React from 'react'; import { NavModel } from '@grafana/data'; export interface PluginPageContextType { sectionNav: NavModel; } export const PluginPageContext = React.createContext(getInitialPluginPageContext()); PluginPageContext.displayName = 'PluginPageContext'; function getInitialPluginPageContext(): PluginPageContextType { return { sectionNav: { main: { text: 'Plugin page' }, node: { text: 'Plugin page' }, }, }; } export function buildPluginPageContext(sectionNav: NavModel | undefined): PluginPageContextType { return { sectionNav: sectionNav ?? getInitialPluginPageContext().sectionNav, }; }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
AppRootPage.test.tsx
14538 bytes
0644
AppRootPage.tsx
7213 bytes
0644
PluginPageContext.tsx
649 bytes
0644
PluginStateInfo.tsx
1207 bytes
0644
PluginsErrorsInfo.tsx
2667 bytes
0644
N4ST4R_ID | Naxtarrr