header.tsx 1.2 KB

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