Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3158 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3719 stevensc 1
import { useContext } from 'react';
2
 
3
import { ValuesContext } from '@providers/habits/values';
4
 
5
export function useValues() {
6
  const {
7
    loading,
8
    values,
9
    addUrl: link_add,
10
    total,
11
    addValue,
12
    removeValue,
13
    updateValue,
14
    getValueById
15
  } = useContext(ValuesContext);
16
 
17
  return {
18
    loading,
19
    values,
20
    addUrl: link_add,
21
    total,
22
    addValue,
23
    removeValue,
24
    updateValue,
25
    getValueById
26
  };
27
}