Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import { useContext } from 'react'
import { HabitProgressContext } from '@providers/habits/habit-progress'
export function useHabitProgress() {
const {
loading,
addUrl,
registers,
addItem,
editItem,
removeItem,
getItemById,
habitName,
total
} = useContext(HabitProgressContext)
return {
loading,
addUrl,
registers,
addItem,
editItem,
removeItem,
getItemById,
habitName,
total
}
}