/** @format */ /** * External dependencies */ import { __ } from '@wordpress/i18n'; import { Component, Fragment } from '@wordpress/element'; import { TabPanel } from '@wordpress/components'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; /** * Internal dependencies */ import ComparePeriods from './compare-periods'; import { H, Section } from 'layout/section'; import PresetPeriods from './preset-periods'; class DatePickerContent extends Component { render() { const { period, compare, onSelect, onClose, getUpdatePath } = this.props; return ( { __( 'Select date range and comparison', 'woo-dash' ) }
{ __( 'select a date range', 'woo-dash' ) } { selectedTab => ( { selectedTab === 'period' && ( ) } { selectedTab === 'custom' &&
Custom Date Picker Goes here
} { __( 'compare to', 'woo-dash' ) } { __( 'Update', 'woo-dash' ) }
) }
); } } DatePickerContent.propTypes = { period: PropTypes.string.isRequired, compare: PropTypes.string.isRequired, onSelect: PropTypes.func.isRequired, onClose: PropTypes.func.isRequired, getUpdatePath: PropTypes.func.isRequired, }; export default DatePickerContent;