Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/@buffetjs/core/build/esm/components/HeaderActions/ drwxr-xr-x | |
| Viewing file: Select action/file-type: function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
/**
*
* HeaderActions
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { HeaderActions as Wrapper } from '@buffetjs/styles';
import Button from '../Button';
function HeaderActions(_ref) {
var actions = _ref.actions;
return /*#__PURE__*/React.createElement(Wrapper, null, actions.map(function (action, index) {
var Component = action.Component,
disabled = action.disabled,
label = action.label,
onClick = action.onClick;
if (Component) {
return /*#__PURE__*/React.createElement(Component, _extends({}, action, {
key: action.key || index
}));
}
return /*#__PURE__*/React.createElement(Button, _extends({
key: label,
onClick: onClick,
disabled: disabled || false
}, action), label);
}));
}
HeaderActions.defaultProps = {
actions: []
};
HeaderActions.propTypes = {
actions: PropTypes.arrayOf(PropTypes.shape({
disabled: PropTypes.bool,
onClick: PropTypes.func,
title: PropTypes.string
}))
};
export default HeaderActions; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0038 ]-- |