2020-04-03 02:38:14 -05:00
|
|
|
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 => ({
|
2021-01-20 00:59:48 -06:00
|
|
|
getFilteredVariables: (filter) => getFilteredVariables(filter, state),
|
|
|
|
getVariableWithName: (name) => getVariableWithName(name, state),
|
2020-04-03 02:38:14 -05:00
|
|
|
getVariables: () => getVariables(state),
|
|
|
|
});
|