import l, { memo as a, isValidElement as i } from "react";
var o = a(({ value: t, then: e, otherwise: n }) => {
  if (i(e)) {
    if (t) return e;
  } else {
    const r = e[t];
    if (r) return r;
  }
  return n || l.createElement(l.Fragment, null);
});
export {
  o as n
};
