"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const components_1 = require("@bluebase/components");
const ListItemText_1 = tslib_1.__importDefault(require("@material-ui/core/ListItemText"));
const ListItem_1 = tslib_1.__importDefault(require("@material-ui/core/ListItem"));
const react_1 = tslib_1.__importDefault(require("react"));
exports.DrawerItem = (props) => {
    const { active, disabled, icon, onPress, right, title } = props;
    return (react_1.default.createElement(ListItem_1.default, { button: !!onPress, disabled: disabled, selected: active, onClick: onPress },
        icon ? react_1.default.createElement(components_1.List.Icon, Object.assign({ size: 24 }, icon)) : null,
        (title) ? react_1.default.createElement(ListItemText_1.default, { inset: !!icon, primary: title }) : null,
        right));
};
