import React from 'react'; import PropTypes from 'prop-types'; import PageLayout from 'foremanReact/routes/common/PageLayout/PageLayout'; import InsightsHeader from './Components/InsightsHeader'; import InsightsTable from './Components/InsightsTable'; import RemediationModal from './Components/RemediationModal'; import { INSIGHTS_SYNC_PAGE_TITLE, INSIGHTS_SEARCH_PROPS, } from './InsightsCloudSyncConstants'; import './InsightsCloudSync.scss'; import Pagination from './Components/InsightsTable/Pagination'; import ToolbarDropdown from './Components/ToolbarDropdown'; import InsightsSettings from './Components/InsightsSettings'; const InsightsCloudSync = ({ syncInsights, query, fetchInsights }) => { const onRecommendationSync = () => syncInsights(fetchInsights, query); const toolbarButtons = ( <> ); return (
fetchInsights({ query: nextQuery, page: 1 })} header={INSIGHTS_SYNC_PAGE_TITLE} toolbarButtons={toolbarButtons} searchQuery={query} beforeToolbarComponent={} >
); }; InsightsCloudSync.propTypes = { syncInsights: PropTypes.func.isRequired, fetchInsights: PropTypes.func.isRequired, query: PropTypes.string, }; InsightsCloudSync.defaultProps = { query: '', }; export default InsightsCloudSync;