mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-08-16 18:51:15 +02:00
44 lines
1.4 KiB
JavaScript
44 lines
1.4 KiB
JavaScript
import Inferno from 'inferno';
|
|
|
|
import { LeftColumn } from './structure/LeftColumn';
|
|
import { RightColumn } from './structure/RightColumn';
|
|
|
|
import { WordForm } from './management/WordForm';
|
|
import { DictionaryDetails } from './display/DictionaryDetails';
|
|
import { WordsList } from './display/WordsList';
|
|
|
|
export const MainDisplay = ({ dictionaryInfo, wordsToDisplay, updateDisplay, updater, lastRender }) => {
|
|
return (
|
|
<section className='section'>
|
|
<div className='container'>
|
|
<div className='columns'>
|
|
|
|
<LeftColumn>
|
|
<WordForm
|
|
updateDisplay={ () => updateDisplay() }
|
|
partsOfSpeech={ dictionaryInfo.partsOfSpeech }
|
|
/>
|
|
</LeftColumn>
|
|
|
|
<RightColumn>
|
|
<DictionaryDetails
|
|
updater={ updater }
|
|
name={ dictionaryInfo.name }
|
|
specification={ dictionaryInfo.specification }
|
|
description={ dictionaryInfo.description }
|
|
partsOfSpeech={ dictionaryInfo.partsOfSpeech }
|
|
details={ dictionaryInfo.details }
|
|
alphabeticalOrder={ dictionaryInfo.alphabeticalOrder }
|
|
/>
|
|
|
|
<WordsList
|
|
lastRender={ lastRender }
|
|
words={ wordsToDisplay }
|
|
adsEveryXWords={ 10 } />
|
|
</RightColumn>
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|