1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-08-17 19:21:13 +02:00
Lexiconga/src/components/MainDisplay.jsx

65 lines
2.1 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, 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 }
alphabeticalOrder={['b', 'p', 't', 'd', 'a', 'o', 'j', 'e']}
details={{
phonology: {
consonants: ['b', 'p', 'd', 't', 'j'],
vowels: ['a', 'o', 'e'],
blends: ['ae', 'oe', 'tj', 'dy'],
phonotactics: {
onset: ['b', 'p', 'j'],
nucleus: ['a', 'o', 'e'],
coda: ['any'],
exceptions: 'There are no exceptions',
},
},
grammar: {
content: 'The rules of the language are simple: just follow them!'
},
custom: [
{
name: 'Test Tab',
content: 'This is a test tab to test how custom tabs work!',
}
],
}}
/>
<WordsList
lastRender={ lastRender }
words={ wordsToDisplay } />
</RightColumn>
</div>
</div>
</section>
);
}