Skip to content
Snippets Groups Projects
OptionsView.tsx 1.37 KiB
Newer Older
  • Learn to ignore specific revisions
  • Hugo NOUTS's avatar
    Hugo NOUTS committed
    import React, { useState } from 'react'
    
    import CozyBar from 'components/Header/CozyBar'
    import Header from 'components/Header/Header'
    import Content from 'components/Content/Content'
    
    Yoan VALLET's avatar
    Yoan VALLET committed
    import KonnectorViewerList from 'components/Konnector/KonnectorViewerList'
    
    import ReportOptions from 'components/Options/ReportOptions'
    
    import FAQLink from 'components/FAQ/FAQLink'
    import LegalNoticeLink from 'components/LegalNotice/LegalNoticeLink'
    
    import GCULink from 'components/GCU/GCULink'
    
    import Version from 'components/Version/Version'
    
    import ProfileTypeOptions from './ProfileTypeOptions'
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
    
    
    HAUTBOIS Aurelie's avatar
    HAUTBOIS Aurelie committed
    import logos from 'assets/png/logos.png'
    
    const OptionsView: React.FC = () => {
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      const [headerHeight, setHeaderHeight] = useState<number>(0)
      const defineHeaderHeight = (height: number) => {
        setHeaderHeight(height)
      }
      return (
    
    Yoan VALLET's avatar
    Yoan VALLET committed
          <CozyBar titleKey={'common.title_options'} />
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
          <Header
            setHeaderHeight={defineHeaderHeight}
    
    Yoan VALLET's avatar
    Yoan VALLET committed
            desktopTitleKey={'common.title_options'}
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
          ></Header>
          <Content height={headerHeight}>
    
    Yoan VALLET's avatar
    Yoan VALLET committed
            <KonnectorViewerList isParam={true} />
    
            <ProfileTypeOptions />
    
    Yoan VALLET's avatar
    Yoan VALLET committed
            <ReportOptions />
    
            <FAQLink />
            <LegalNoticeLink />
    
            <GCULink />
    
            <div className="parameters-logos">
    
    HAUTBOIS Aurelie's avatar
    HAUTBOIS Aurelie committed
              <img src={logos} alt="ensemble de logos" />
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
          </Content>
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      )
    }
    
    
    export default OptionsView