PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/figplantsparadise.com/wp-content/plugins/really-simple-ssl/settings/src/Menu/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/figplantsparadise.com/wp-content/plugins/really-simple-ssl/settings/src/Menu/Menu.js

import Placeholder from '../Placeholder/Placeholder';
import MenuItem from './MenuItem';
import { __ } from '@wordpress/i18n';
/**
 * Menu block, rendering th entire menu
 */
const Menu = (props) => {
     let hasPremiumItems =  props.menu.menu_items.filter((item) => {
        return (item.premium===true)
    }).length>0;

    if ( ! props.isAPILoaded ) {
        return (
            <Placeholder></Placeholder>
        );
    }

    return (
        <div className="rsssl-wizard-menu rsssl-grid-item">
            <div className="rsssl-grid-item-header">
                <h1 className="rsssl-h4">{props.menu.title}</h1>
            </div>
            <div className="rsssl-grid-item-content">
                <div className="rsssl-wizard-menu-items">
                    {
                        props.menu.menu_items.map((menuItem, i) =>
                            <MenuItem
                                key={i}
                                isAPILoaded={props.isAPILoaded}
                                menuItem={menuItem}
                                selectMenu={props.selectMenu}
                                selectStep={props.selectStep}
                                selectedMenuItem={props.selectedMenuItem}
                                selectedMainMenuItem={props.selectedMainMenuItem}
                                getPreviousAndNextMenuItems={props.getPreviousAndNextMenuItems}
                            />
                        )
                    }
                    { hasPremiumItems && !rsssl_settings.pro_plugin_active &&
                        <div className="rsssl-premium-menu-item"><div><a target="_blank" href={rsssl_settings.upgrade_link} className='button button-black'>{__('Go Pro', 'really-simple-ssl')}</a></div></div>
                    }
                </div>
            </div>
            <div className="rsssl-grid-item-footer">

            </div>
        </div>
    )

}

export default Menu;