"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const components_1 = require("@bluebase/components");
const BottomNavigationAction_1 = tslib_1.__importDefault(require("@material-ui/core/BottomNavigationAction"));
const react_1 = tslib_1.__importDefault(require("react"));
const component_mapper_1 = require("@bluebase/component-mapper");
exports.BottomNavigationAction = component_mapper_1.componentMapper(BottomNavigationAction_1.default, {
    icon: ({ icon }) => {
        if (!icon) {
            return;
        }
        const size = icon.size || 24;
        const props = Object.assign({ size, style: Object.assign({ lineHeight: size }, icon.style) }, icon);
        return react_1.default.createElement(components_1.DynamicIcon, props);
    }
}, {
    rest: true
});
