2023-08-23 18:11:42 +03:00
|
|
|
import HelpAPI from '../../components/Help/HelpAPI';
|
|
|
|
import HelpConstituenta from '../../components/Help/HelpConstituenta';
|
|
|
|
import HelpExteor from '../../components/Help/HelpExteor';
|
|
|
|
import HelpLibrary from '../../components/Help/HelpLibrary';
|
|
|
|
import HelpMain from '../../components/Help/HelpMain';
|
|
|
|
import HelpRSFormItems from '../../components/Help/HelpRSFormItems';
|
|
|
|
import HelpRSFormMeta from '../../components/Help/HelpRSFormMeta';
|
|
|
|
import HelpRSLang from '../../components/Help/HelpRSLang';
|
2023-10-25 21:21:43 +03:00
|
|
|
import HelpRSTemplates from '../../components/Help/HelpRSTemplates';
|
2023-08-23 18:11:42 +03:00
|
|
|
import HelpTermGraph from '../../components/Help/HelpTermGraph';
|
2023-09-29 16:22:49 +03:00
|
|
|
import HelpTerminologyControl from '../../components/Help/HelpTerminologyControl';
|
2023-09-11 20:31:54 +03:00
|
|
|
import { HelpTopic } from '../../models/miscelanious';
|
2023-08-23 18:11:42 +03:00
|
|
|
|
|
|
|
interface ViewTopicProps {
|
|
|
|
topic: HelpTopic
|
|
|
|
}
|
|
|
|
|
|
|
|
function ViewTopic({ topic }: ViewTopicProps) {
|
|
|
|
return (
|
2023-11-27 11:33:34 +03:00
|
|
|
<div className='w-full px-2 py-2'>
|
|
|
|
{topic === HelpTopic.MAIN ? <HelpMain /> : null}
|
|
|
|
{topic === HelpTopic.LIBRARY ? <HelpLibrary /> : null}
|
|
|
|
{topic === HelpTopic.RSFORM ? <HelpRSFormMeta /> : null}
|
|
|
|
{topic === HelpTopic.CSTLIST ? <HelpRSFormItems /> : null}
|
|
|
|
{topic === HelpTopic.CONSTITUENTA ? <HelpConstituenta /> : null}
|
|
|
|
{topic === HelpTopic.GRAPH_TERM ? <HelpTermGraph /> : null}
|
|
|
|
{topic === HelpTopic.RSTEMPLATES ? <HelpRSTemplates /> : null}
|
|
|
|
{topic === HelpTopic.RSLANG ? <HelpRSLang /> : null}
|
|
|
|
{topic === HelpTopic.TERM_CONTROL ? <HelpTerminologyControl /> : null}
|
|
|
|
{topic === HelpTopic.EXTEOR ? <HelpExteor /> : null}
|
|
|
|
{topic === HelpTopic.API ? <HelpAPI /> : null}
|
|
|
|
</div>);
|
2023-08-23 18:11:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
export default ViewTopic;
|