Rev 6805 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import React, { lazy } from 'react'
import { useSelector } from 'react-redux'
const ProfileView = lazy(() => import('../../layouts/profile-edit/ProfileView'))
const ProfileViewLinkedIn = lazy(() =>
import('../../layouts/profile-edit/ProfileViewLinkedIn')
)
const ProfileViewPage = () => {
const { theme_id } = useSelector(({ auth }) => auth)
switch (theme_id) {
case 1:
return <ProfileView />
case 2:
return <ProfileViewLinkedIn />
default:
return <ProfileView />
}
}
export default ProfileViewPage