Rev 3158 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
import { useContext } from 'react';
import { ValuesContext } from '@providers/habits/values';
export function useValues() {
const {
loading,
values,
addUrl: link_add,
total,
addValue,
removeValue,
updateValue,
getValueById
} = useContext(ValuesContext);
return {
loading,
values,
addUrl: link_add,
total,
addValue,
removeValue,
updateValue,
getValueById
};
}