import { useStoreContext } from './useStoreContext'; /** * Get a callback to remove all items from the store * * @example * import { useResetStore } from 'mv-tmp'; * * const ResetPrefs = () { * const reset = useResetStore(); * * const handleClick = () => { * reset(); * }; * * return ; * } */ export const useResetStore = () => { const { reset } = useStoreContext(); return reset; };