header.tsx 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import { useTranslation } from 'react-i18next'
  2. import EmailCell from './cell'
  3. import OLCol from '@/features/ui/components/ol/ol-col'
  4. import OLRow from '@/features/ui/components/ol/ol-row'
  5. import classnames from 'classnames'
  6. import { bsVersion } from '@/features/utils/bootstrap-5'
  7. function Header() {
  8. const { t } = useTranslation()
  9. return (
  10. <>
  11. <OLRow>
  12. <OLCol
  13. lg={4}
  14. className={bsVersion({
  15. bs5: 'd-none d-sm-block',
  16. bs3: 'hidden-xs',
  17. })}
  18. >
  19. <EmailCell>
  20. <strong>{t('email')}</strong>
  21. </EmailCell>
  22. </OLCol>
  23. <OLCol
  24. lg={8}
  25. className={bsVersion({
  26. bs5: 'd-none d-sm-block',
  27. bs3: 'hidden-xs',
  28. })}
  29. >
  30. <EmailCell>
  31. <strong>{t('institution_and_role')}</strong>
  32. </EmailCell>
  33. </OLCol>
  34. </OLRow>
  35. <div
  36. className={classnames(
  37. bsVersion({ bs5: 'd-none d-sm-block', bs3: 'hidden-xs' }),
  38. 'horizontal-divider'
  39. )}
  40. />
  41. <div
  42. className={classnames(
  43. bsVersion({ bs5: 'd-none d-sm-block', bs3: 'hidden-xs' }),
  44. 'horizontal-divider'
  45. )}
  46. />
  47. </>
  48. )
  49. }
  50. export default Header