Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (39 sloc) 1.08 KB
/** @format */
/**
* External dependencies
*/
import React from 'react';
import { connect } from 'react-redux';
import { localize } from 'i18n-calypso';
import { flowRight } from 'lodash';
/**
* Internal dependencies
*/
import ExtensionRedirect from 'blocks/extension-redirect';
import DocumentHead from 'components/data/document-head';
import Main from 'components/main';
import { getSelectedSiteId } from 'state/ui/selectors';
import { ZONINATOR_MIN_VERSION } from '../../app/constants';
import QueryZones from '../data/query-zones';
const Settings = ( { children, siteId, translate } ) => {
const mainClassName = 'zoninator__main';
return (
<Main className={ mainClassName }>
<ExtensionRedirect
pluginId="zoninator"
siteId={ siteId }
minimumVersion={ ZONINATOR_MIN_VERSION }
/>
<QueryZones siteId={ siteId } />
<DocumentHead title={ translate( 'WP Zone Manager' ) } />
{ children }
</Main>
);
};
const connectComponent = connect( state => ( {
siteId: getSelectedSiteId( state ),
} ) );
export default flowRight(
connectComponent,
localize
)( Settings );
You can’t perform that action at this time.