"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const core_1 = require("@bluebase/core");
const react_1 = tslib_1.__importDefault(require("react"));
function withScreenProps(Component) {
    return (props) => (react_1.default.createElement(core_1.BlueBaseConsumer, null, (BB) => (react_1.default.createElement(core_1.ThemeConsumer, null, ({ theme }) => (react_1.default.createElement(core_1.IntlConsumer, null, (intl) => (react_1.default.createElement(Component, Object.assign({}, props, { screenProps: { BB, theme, intl } })))))))));
}
exports.withScreenProps = withScreenProps;
