import React from 'react'; import { Layout } from 'soapbox/components/ui'; import LinkFooter from 'soapbox/features/ui/components/link-footer'; import BundleContainer from 'soapbox/features/ui/containers/bundle-container'; import { WhoToFollowPanel, TrendsPanel, NewEventPanel, } from 'soapbox/features/ui/util/async-components'; import { useFeatures } from 'soapbox/hooks'; interface IEventsPage { children: React.ReactNode } /** Page to display events list. */ const EventsPage: React.FC = ({ children }) => { const features = useFeatures(); return ( <> {children} {Component => } {features.trends && ( {Component => } )} {features.suggestions && ( {Component => } )} ); }; export default EventsPage;