mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
21 lines
582 B
TypeScript
21 lines
582 B
TypeScript
|
import { SafeDynamicImport } from 'app/core/components/DynamicImports/SafeDynamicImport';
|
||
|
import { config } from 'app/core/config';
|
||
|
import { RouteDescriptor } from 'app/core/navigation/types';
|
||
|
|
||
|
export function getRoutes(): RouteDescriptor[] {
|
||
|
if (config.featureToggles.queryLibrary) {
|
||
|
return [
|
||
|
{
|
||
|
path: `/query-library`,
|
||
|
exact: true,
|
||
|
component: SafeDynamicImport(
|
||
|
() =>
|
||
|
import(/* webpackChunkName: "QueryLibraryPage" */ 'app/features/query-library/components/QueryLibraryPage')
|
||
|
),
|
||
|
},
|
||
|
];
|
||
|
}
|
||
|
|
||
|
return [];
|
||
|
}
|