/** * External dependencies */ import ChartEditor from '../ChartEditor.js'; /** * WordPress dependencies */ const { __ } = wp.i18n; const { Component, Fragment } = wp.element; const { Button, Modal, PanelBody } = wp.components; class ManualData extends Component { constructor() { super( ...arguments ); this.toggleModal = this.toggleModal.bind( this ); this.state = { isOpen: false }; } toggleModal() { this.setState({ isOpen: ! this.state.isOpen }); } render() { return ( ( 'community' !== visualizerLocalize.isPro ) ? { __( 'You can manually edit the chart data using a spreadsheet like editor.' ) } { __( 'View Editor' ) } { this.state.isOpen && ( ) } : { __( 'Enable this feature in PRO version!' ) } { __( 'Buy Now' ) } ); } } export default ManualData;
{ __( 'You can manually edit the chart data using a spreadsheet like editor.' ) }
{ __( 'Enable this feature in PRO version!' ) }