forked from grafana.jool/grafana-jool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
527 B
9 lines
527 B
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),
|
|
});
|
|
|