import * as React from 'react' import Header from './Header' import ActivityFeed from './ActivityFeed' import Settings from './Settings' import SettingsNotifications from './Settings/Notifications' import SettingsDomains from './Settings/Domains' import { PopupView } from '../interfaces/PopupView' import PopupToast from './PopupToast' interface PopupState { view: PopupView } class PopUp extends React.Component<{}, PopupState> { state = { view: PopupView.ActivityFeed, } handleOnSettingsClick = () => { this.setState({ view: PopupView.Settings }) } handleCloseSettings = () => { this.setState({ view: PopupView.ActivityFeed }) } handleManageNotifs = () => { this.setState({ view: PopupView.SettingsNotifications }) } handleManageDomains = () => { this.setState({ view: PopupView.SettingsDomains }) } renderView() { switch (this.state.view) { case PopupView.Settings: return ( ) case PopupView.SettingsNotifications: return ( ) case PopupView.SettingsDomains: return ( ) case PopupView.ActivityFeed: return [
, , ] } } render(): JSX.Element { return
{this.renderView()}
} } export default PopUp