14 lines
277 B
JavaScript
14 lines
277 B
JavaScript
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
|
|
};
|