Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6707 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
6706 stevensc 1
import React, { useRef } from 'react'
2
import useOutsideClick from '../../../../hooks/useOutsideClick'
6704 stevensc 3
import SuggestWidget from '../../../widgets/default/SuggestWidget'
4
import ProfileInfo from '../../../widgets/default/ProfileWidget'
5
 
6
const ResponsiveNavbar = ({
7
  show,
8
  image,
6706 stevensc 9
  toggleMenu,
6704 stevensc 10
  name,
11
  description,
12
  visits,
13
  country,
14
  connections,
15
  linkAdmin,
16
  linkImpersonate,
17
}) => {
6753 stevensc 18
  const navRef = useRef(null)
19
  useOutsideClick(navRef, () => toggleMenu())
6704 stevensc 20
 
21
  return (
6753 stevensc 22
    <div className={`responsive_navbar ${show && 'show'}`} ref={navRef}>
6704 stevensc 23
      <ProfileInfo
24
        connections={connections}
25
        country={country}
26
        description={description}
27
        visits={visits}
28
        image={image}
29
        linkAdmin={linkAdmin}
30
        linkImpersonate={linkImpersonate}
31
        name={name}
32
      />
33
      <SuggestWidget title="Mis Grupos:" url="/helpers/my-groups" />
34
      <SuggestWidget title="Grupos:" url="/helpers/groups-suggestion" />
6753 stevensc 35
    </div>
6704 stevensc 36
  )
37
}
38
 
39
export default ResponsiveNavbar