File "AddButton.js"

Full path: /home/satkhirabarta/public_html/wp-content/plugins/really-simple-ssl/settings/src/Settings/GeoBlockList/AddButton.js
File size: 709 B (709 B bytes)
MIME-type: text/x-java
Charset: utf-8

Download   Open   Edit   Advanced Editor &nnbsp; Back

import Icon from "../../utils/Icon";

const AddButton = ({ getCurrentFilter, moduleName, handleOpen, processing, blockedText, allowedText, disabled }) => {
    return (
        <div className="rsssl-add-button">
                <div className="rsssl-add-button__inner">
                    <button
                        className="button button-secondary button-datatable rsssl-add-button__button"
                        onClick={handleOpen}
                        disabled={disabled}
                    >
                        {allowedText}{processing && <Icon name = "loading" color = 'grey' />}
                    </button>
                </div>
        </div>
    );
};

export default AddButton;