UNPKG

@kalamazoo/profilecard

Version:

A React component to display a card with user information.

16 lines 535 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var filterActions = function (actions, data) { if (actions === void 0) { actions = []; } return actions.filter(function (action) { if (!action.shouldRender) { return true; } else if (typeof action.shouldRender !== 'function') { return Boolean(action.shouldRender); } return action.shouldRender(data); }); }; exports.default = filterActions; //# sourceMappingURL=filterActions.js.map