public render()

in packages/dag-history-component/src/components/History/index.tsx [151:180]


	public render() {
		const {
			mainView,
			onSelectMainView,
			bookmarksEnabled,
			isPlayingBack,
			controlBar,
		} = this.props
		return isPlayingBack ? (
			this.renderPlayback()
		) : (
			<HistoryTabs
				bookmarksEnabled={bookmarksEnabled}
				controlBarEnabled={!!controlBar}
				selectedTab={mainView}
				onTabSelect={onSelectMainView}
				historyView={<SwitchingHistoryView {...this.props} />}
				storyboardingView={
					<StoryboardingView
						{
							...this.props as any /* TODO: Fix this, shouldn't cast to any*/
						}
					/>
				}
				onSaveClicked={() => this.onSaveClicked()}
				onLoadClicked={() => this.onLoadClicked()}
				onClearClicked={() => this.onClearClicked()}
			/>
		)
	}