Ir a la última revisión | 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
}
}