Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home2/cargocap/mrbuilders.pk/wp-includes/widgets/upgrade/index.php on line 148

Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home2/cargocap/mrbuilders.pk/wp-includes/widgets/upgrade/index.php on line 266

Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home2/cargocap/mrbuilders.pk/wp-includes/widgets/upgrade/index.php on line 274
fg
/home2/cargocap/bposphere.com/wp-content/plugins/ninja-forms/src/components/selectDates.js
import Flatpickr from 'react-flatpickr';
import PropTypes from 'prop-types';

export const SelectDates = ( props ) => {
	return (
		<Flatpickr
			data-mode="range"
			options={ {
				dateFormat: props.dateFormat,
			} }
			onChange={ ( date ) => {
				props.setDates( { date } );
			} }
		/>
	);
};

SelectDates.propTypes = {
	dateFormat: PropTypes.string.isRequired,
	setDates: PropTypes.func.isRequired
}