1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-08-15 02:01:11 +02:00
Lexiconga/src/components/MainDisplay.jsx

47 lines
1.3 KiB
React
Raw Normal View History

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, lastRender }) => {
return (
<section className='section'>
<div className='container'>
<div className='columns'>
<LeftColumn>
<WordForm
updateDisplay={ () => updateDisplay() }
partsOfSpeech={ dictionaryInfo.partsOfSpeech }
/>
</LeftColumn>
<RightColumn>
<DictionaryDetails
name={ dictionaryInfo.name }
specification={ dictionaryInfo.specification }
description={ dictionaryInfo.description }
details={{
custom: [
{
name: 'Test Tab',
}
]
}}
/>
<WordsList
lastRender={ lastRender }
words={ wordsToDisplay } />
</RightColumn>
</div>
</div>
</section>
);
}