Proyectos de Subversion LeadersLinked - SPA

Rev

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
  };
}