Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
plugins
/
admin
/
components
/
GetStartedWithPlugin
/
File Content:
GetStartedWithPlugin.tsx
import React, { ReactElement } from 'react'; import { PluginType } from '@grafana/data'; import { CatalogPlugin } from '../../types'; import { GetStartedWithApp } from './GetStartedWithApp'; import { GetStartedWithDataSource } from './GetStartedWithDataSource'; type Props = { plugin: CatalogPlugin; }; export function GetStartedWithPlugin({ plugin }: Props): ReactElement | null { if (!plugin.isInstalled || plugin.isDisabled) { return null; } switch (plugin.type) { case PluginType.datasource: return <GetStartedWithDataSource plugin={plugin} />; case PluginType.app: return <GetStartedWithApp plugin={plugin} />; default: return null; } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
GetStartedWithApp.tsx
1686 bytes
0644
GetStartedWithDataSource.test.tsx
2642 bytes
0644
GetStartedWithDataSource.tsx
1382 bytes
0644
GetStartedWithPlugin.tsx
692 bytes
0644
index.ts
63 bytes
0644
N4ST4R_ID | Naxtarrr