Update common file

This commit is contained in:
2023-11-30 10:37:50 +07:00
parent 28f15cec31
commit 5aec68dfce
13 changed files with 106 additions and 10 deletions
@@ -0,0 +1,24 @@
import { Outlet } from 'react-router-dom';
// Styled
import Spinner from '@commonStyle/Spinner';
import { FullPageLayout } from './styled';
// Hooks
import { useAccount } from '@hook/authentication/useAccount';
const RootLayout = () => {
const { isPending } = useAccount();
return isPending ? (
<FullPageLayout>
<Spinner />
</FullPageLayout>
) : (
<>
<Outlet />
</>
);
};
export default RootLayout;