import f from "../../../@babel/runtime/helpers/esm/slicedToArray.mjs";
import * as e from "react";
import n from "../context.mjs";
const C = function(r, t) {
  var u = e.useContext(n), c = u.values, o = e.useState([]), a = f(o, 2), i = a[0], s = a[1];
  return e.useEffect(
    function() {
      if (t && !r) {
        var l = c[0];
        s(l || []);
      }
    },
    /* eslint-disable react-hooks/exhaustive-deps */
    [t]
    /* eslint-enable react-hooks/exhaustive-deps */
  ), [i, s];
};
export {
  C as default
};
