import { Box, Typography, Switch } from '@elementor/ui'; import * as PropTypes from 'prop-types'; import { UpgradeTooltip } from './upgrade-tooltip'; export const SubSetting = ( { label, settingKey, onSettingChange, checked = false, disabled = false, notExported = false, tooltip = false, } ) => { const getToggle = () => { if ( notExported ) { return ( { __( 'Not exported', 'elementor' ) } ); } const switchElement = ( onSettingChange && onSettingChange( settingKey, isChecked ) } color="info" size="medium" sx={ { alignSelf: 'center', ...( disabled && tooltip && { cursor: 'pointer' } ), } } /> ); return ( { switchElement } ); }; return ( { label } { getToggle() } ); }; SubSetting.propTypes = { checked: PropTypes.bool, disabled: PropTypes.bool, notExported: PropTypes.bool, label: PropTypes.string.isRequired, settingKey: PropTypes.string.isRequired, onSettingChange: PropTypes.func, tooltip: PropTypes.bool, }; Contact Us - Assiniboine Lights & Landscapes (403) 301-3300

Contact Us

Need It Done Right? 📍

Get a Free, No-Obligation Estimate Now

No hassle, no waiting — fill out the form and we’ll get back to you fast with next steps.


If you haven't heard back from us within the business day please contact us at 403-301-3300 as emails can sometimes be marked as spam and deleted.

Thank you for taking an interest in Assiniboine Lawns & Landscapes, we look forward to working with you!

Gallery

Scroll to Top