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-07-25 22:11:33 -06:00
|
|
|
export const MainDisplay = ({ dictionaryInfo, wordsToDisplay, updateDisplay, 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-07-25 22:11:33 -06:00
|
|
|
name={ dictionaryInfo.name }
|
|
|
|
specification={ dictionaryInfo.specification }
|
|
|
|
description={ dictionaryInfo.description }
|
2017-04-19 15:11:37 -06:00
|
|
|
details={{
|
|
|
|
custom: [
|
|
|
|
{
|
2017-07-25 22:11:33 -06:00
|
|
|
name: 'Test Tab',
|
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 }
|
|
|
|
words={ wordsToDisplay } />
|
2017-04-19 15:11:37 -06:00
|
|
|
</RightColumn>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
);
|
|
|
|
}
|