import * as React from 'react';
import { Tabs, Tab } from 'material-ui/Tabs';
import * as EteSync from './api/EteSync';
import Container from './Container';
import SecondaryHeader from './SecondaryHeader';
import JournalEntries from './JournalEntries';
import JournalAddressBook from './JournalAddressBook';
import JournalCalendar from './JournalCalendar';
import LoadingIndicator from './LoadingIndicator';
import { syncEntriesToItemMap, syncEntriesToCalendarItemMap } from './journal-processors';
import { JournalsData, EntriesType, CredentialsData } from './store';
interface PropsType {
journals: JournalsData;
entries: EntriesType;
etesync: CredentialsData;
match: any;
}
interface PropsTypeInner extends PropsType {
}
class Journal extends React.Component {
static defaultProps = {
prevUid: null,
};
props: PropsTypeInner;
constructor(props: any) {
super(props);
}
render() {
const journalUid = this.props.match.params.journalUid;
const entries = this.props.entries[journalUid];
if ((!entries) || (entries.value === null)) {
return (