Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 2804 | Rev 2963 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
2803 stevensc 1
import React from 'react'
2
import { Outlet } from 'react-router-dom'
3
import { useSelector } from 'react-redux'
4
import { Container, CssBaseline } from '@mui/material'
5
 
6
import { Chat } from '@components/chat'
7
import Footer from '@components/footer/Footer'
8
import Header from '@components/UI/navbar/Header'
9
import NotificationAlert from '@components/UI/notification/NotificationAlert'
10
 
11
export default function RootLayout() {
12
  const { isAuth } = useSelector(({ auth }) => auth)
13
 
14
  return (
15
    <>
16
      <CssBaseline />
17
 
2804 stevensc 18
      {isAuth ? <Header /> : null}
2803 stevensc 19
 
20
      <Container sx={{ minHeight: '65vh' }}>
21
        <Outlet />
22
 
23
        {isAuth ? <Chat /> : null}
24
        <NotificationAlert />
25
      </Container>
26
 
27
      <Footer />
28
    </>
29
  )
30
}