"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const components_1 = require("@bluebase/components");
const IconButton_1 = tslib_1.__importDefault(require("@material-ui/core/IconButton"));
const react_1 = tslib_1.__importDefault(require("react"));
const component_mapper_1 = require("@bluebase/component-mapper");
exports.IconButton = component_mapper_1.componentMapper(IconButton_1.default, {
    accessibilityLabel: ({ accessibilityLabel }) => accessibilityLabel,
    children: ({ name, size, color }) => react_1.default.createElement(components_1.Icon, { name: name, size: size, color: color }),
    disabled: ({ disabled }) => disabled,
    onClick: 'onPress',
}, { rest: true, ignore: ['color'] });
exports.IconButton.defaultProps = components_1.IconButtonDefaultProps;
