import { css, cx } from '@emotion/css'; import React from 'react'; import { AppPlugin, GrafanaTheme2, UrlQueryMap } from '@grafana/data'; import { useStyles2 } from '@grafana/ui'; import { VersionList } from '../components/VersionList'; import { usePluginConfig } from '../hooks/usePluginConfig'; import { CatalogPlugin, PluginTabIds } from '../types'; import { AppConfigCtrlWrapper } from './AppConfigWrapper'; import { PluginDashboards } from './PluginDashboards'; type Props = { plugin: CatalogPlugin; queryParams: UrlQueryMap; pageId: string; }; export function PluginDetailsBody({ plugin, queryParams, pageId }: Props): JSX.Element { const styles = useStyles2(getStyles); const { value: pluginConfig } = usePluginConfig(plugin); if (pageId === PluginTabIds.OVERVIEW) { return (
); } if (pageId === PluginTabIds.VERSIONS) { return (Page not found.