2017-04-19 15:11:37 -06:00
|
|
|
import Inferno from 'inferno';
|
|
|
|
|
2017-07-25 22:11:33 -06:00
|
|
|
import { LeftColumn } from './structure/LeftColumn';
|
|
|
|
import { RightColumn } from './structure/RightColumn';
|
2017-04-19 15:11:37 -06:00
|
|
|
|
2017-07-25 22:11:33 -06:00
|
|
|
import { WordForm } from './management/WordForm';
|
|
|
|
import { DictionaryDetails } from './display/DictionaryDetails';
|
|
|
|
import { WordsList } from './display/WordsList';
|
2017-04-19 15:11:37 -06:00
|
|
|
|
2017-08-16 16:53:55 -06:00
|
|
|
export const MainDisplay = ({ dictionaryInfo, wordsToDisplay, updateDisplay, updater, lastRender }) => {
|
2017-04-19 15:11:37 -06:00
|
|
|
return (
|
|
|
|
<section className='section'>
|
|
|
|
<div className='container'>
|
|
|
|
<div className='columns'>
|
|
|
|
|
|
|
|
<LeftColumn>
|
|
|
|
<WordForm
|
2017-07-25 22:11:33 -06:00
|
|
|
updateDisplay={ () => updateDisplay() }
|
|
|
|
partsOfSpeech={ dictionaryInfo.partsOfSpeech }
|
2017-04-19 15:11:37 -06:00
|
|
|
/>
|
|
|
|
</LeftColumn>
|
|
|
|
|
|
|
|
<RightColumn>
|
|
|
|
<DictionaryDetails
|
2017-08-16 16:53:55 -06:00
|
|
|
updater={ updater }
|
2017-07-25 22:11:33 -06:00
|
|
|
name={ dictionaryInfo.name }
|
|
|
|
specification={ dictionaryInfo.specification }
|
|
|
|
description={ dictionaryInfo.description }
|
2017-08-16 16:53:55 -06:00
|
|
|
partsOfSpeech={ dictionaryInfo.partsOfSpeech }
|
2017-08-20 14:41:08 -06:00
|
|
|
details={ dictionaryInfo.details }
|
|
|
|
alphabeticalOrder={ dictionaryInfo.alphabeticalOrder }
|
2017-04-19 15:11:37 -06:00
|
|
|
/>
|
2017-05-18 23:43:29 -06:00
|
|
|
|
|
|
|
<WordsList
|
2017-07-25 22:11:33 -06:00
|
|
|
lastRender={ lastRender }
|
2017-09-11 11:29:22 -06:00
|
|
|
words={ wordsToDisplay }
|
|
|
|
adsEveryXWords={ 10 } />
|
2017-04-19 15:11:37 -06:00
|
|
|
</RightColumn>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
);
|
|
|
|
}
|