Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const ActionButtonWraper = (props) => {
const btnProps = excludeKeys(props, [ 'confirmation', 'items' ])
const { items, actionDisabled, confirmation, shortTitle } = props
if (items && items.filter(i => i !== null).length > 0) {
return
{ items.filter(i => i !== null && !i.actionDisabled).map(item => {
return
}) }
}
return <button>
}
ActionButtonWraper.propTypes = {</button>
editMode = undefined,
editable = true,
editTooltip,
idPrefix = '',
className = '',
disableSaveButton = false,
disableTooltip = undefined,
} = this.props
const editing = editMode === undefined ? this.state.edit : editMode
const hasHeading = !!title
const hasBadge = itemCount !== undefined
const hasIcon = icon && icon.type && icon.name
const RenderChildren = this.renderChildren
return (
{hasHeading && (
{hasIcon && }
{title}
{hasBadge && {itemCount}}