import React from 'react'; import Datepicker from './datepicker' import SiteSwitcher from './site-switcher' import Filters from './filters' import CurrentVisitors from './stats/current-visitors' import VisitorGraph from './stats/graph/visitor-graph' import Sources from './stats/sources' import Pages from './stats/pages' import Locations from './stats/locations'; import Devices from './stats/devices' import Conversions from './stats/conversions' import { withPinnedHeader } from './pinned-header-hoc'; function Historical(props) { function renderConversions() { if (props.site.hasGoals) { return (
) } return null } return (
{ renderConversions() }
) } export default withPinnedHeader(Historical, '#stats-container-top');