import { useSelector } from './useSelector';
export function Switch({ value, children, }) {
    var _a, _b, _c, _d, _e, _f;
    // Select from an object of cases
    return ((_f = (_c = (_b = (_a = children)[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);
}
//# sourceMappingURL=Switch.jsx.map