"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.NavActions = void 0;
var react_1 = __importDefault(require("react"));
var free_solid_svg_icons_1 = require("@fortawesome/free-solid-svg-icons");
var native_1 = require("../../Flex/native");
var Pressable_1 = require("../../Pressable");
var NavActions_style_1 = require("./NavActions.style");
exports.NavActions = function (_a) {
    var actions = _a.actions, selected = _a.selected, onUnselectAll = _a.onUnselectAll;
    return (react_1.default.createElement(NavActions_style_1.Container, null,
        react_1.default.createElement(Pressable_1.Pressable, { onPress: function () { return onUnselectAll(); }, ripple: true, testID: "deselect" },
            react_1.default.createElement(native_1.Flex, { horizontal: true, alignItems: "center" },
                react_1.default.createElement(NavActions_style_1.BackContainer, null,
                    react_1.default.createElement(NavActions_style_1.Icon, { icon: free_solid_svg_icons_1.faArrowLeft })),
                react_1.default.createElement(NavActions_style_1.CountSelected, null,
                    react_1.default.createElement(NavActions_style_1.CountSelectedText, null, selected)))),
        react_1.default.createElement(NavActions_style_1.ActionsBtn, null, actions &&
            actions.map(function (i) { return (react_1.default.createElement(NavActions_style_1.IconTouchable, { key: "action-btn-" + i.id, testID: "action-btn-" + i.id, onPress: i.onPress, ripple: true }, i.item)); }))));
};
//# sourceMappingURL=NavActions.js.map