/** * WordPress dependencies */ const { __ } = wp.i18n; const { Component } = wp.element; const { Button, ExternalLink, PanelBody, SelectControl, TextControl } = wp.components; class RemoteImport extends Component { constructor() { super( ...arguments ); } render() { return (

{ __( 'You can use this to import data from a remote CSV file. The first row of the CSV file should contain the column headings. The second one should contain series type (string, number, boolean, date, datetime, timeofday).' ) }

{ __( 'If you are unsure about how to format your data CSV then please take a look at this sample: ' ) } { `${this.props.chart['visualizer-chart-type']}.csv` }

{ __( 'You can also import data from Google Spreadsheet.' ) }

{ ( 'business' === visualizerLocalize.isPro ) ?

{ __( 'You can choose here to synchronize your chart data with a remote CSV file. ' ) }

{ __( 'You can also synchronize with your Google Spreadsheet file.' ) }

{ __( 'We will update the chart data based on your time interval preference by overwritting the current data with the one from the URL.' ) }

:

{ __( 'Enable this feature in BUSINESS version!' ) }

}
); } } export default RemoteImport;