mirror of
https://github.com/grafana/grafana.git
synced 2025-01-08 23:23:45 -06:00
10 lines
523 B
TypeScript
10 lines
523 B
TypeScript
|
import { getFilteredVariables, getVariables, getVariableWithName } from '../../app/features/variables/state/selectors';
|
||
|
import { StoreState } from '../../app/types';
|
||
|
import { TemplateSrvDependencies } from 'app/features/templating/template_srv';
|
||
|
|
||
|
export const getTemplateSrvDependencies = (state: StoreState): TemplateSrvDependencies => ({
|
||
|
getFilteredVariables: filter => getFilteredVariables(filter, state),
|
||
|
getVariableWithName: name => getVariableWithName(name, state),
|
||
|
getVariables: () => getVariables(state),
|
||
|
});
|