mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
9 lines
490 B
TypeScript
9 lines
490 B
TypeScript
import { createContext } from 'react';
|
|
|
|
import { DATASOURCES_ROUTES } from '../constants';
|
|
import { DataSourcesRoutes } from '../types';
|
|
|
|
// The purpose of this context is to be able to override the data-sources routes (used for links for example) used under
|
|
// the app/features/datasources modules, so we can reuse them more easily in different parts of the application (e.g. under Connections)
|
|
export const DataSourcesRoutesContext = createContext<DataSourcesRoutes>(DATASOURCES_ROUTES);
|