"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Switch = void 0;
const useSelector_1 = require("./useSelector");
function Switch({ value, children, }) {
    var _a, _b, _c, _d, _e, _f;
    // Select from an object of cases
    return ((_f = (_c = (_b = (_a = children)[(0, useSelector_1.useSelector)(value)]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (_e = (_d = children)['default']) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : null);
}
exports.Switch = Switch;
//# sourceMappingURL=Switch.jsx.map