mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 12:36:27 +00:00
Move auth config and build admin menus
Extract NextAuth configuration into a shared library, load admin sidebar items from role permissions, and update related RBAC types and UI.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { Skeleton } from '@/components/ui/skeleton';
|
||||
import { FC } from 'react';
|
||||
|
||||
type Props = {};
|
||||
|
||||
const SkeletonSidebar: FC<Props> = () => {
|
||||
return (
|
||||
<>
|
||||
<div className='hidden lg:block bg-[#FAF8F5] dark:bg-[#1C1814]/95 text-[#4A3F35] dark:text-[#F6F1E8] w-72 h-full rounded-2xl shadow-[4px_0_24px_rgba(74,63,53,0.06)] border border-[#E5DDD1] dark:border-[#3D342C] p-5'>
|
||||
<div className='p-4 border-b border-[#E5DDD1]/70 dark:border-[#3D342C] w-full'>
|
||||
<Skeleton className='w-full h-7 2xl:h-8' />
|
||||
</div>
|
||||
<div className='mt-5 space-y-5 flex flex-col w-full'>
|
||||
<Skeleton className='w-full h-7 2xl:h-8' />
|
||||
<Skeleton className='w-full h-7 2xl:h-8' />
|
||||
<Skeleton className='w-full h-7 2xl:h-8' />
|
||||
<Skeleton className='w-full h-7 2xl:h-8' />
|
||||
<Skeleton className='w-full h-7 2xl:h-8' />
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default SkeletonSidebar;
|
||||
Reference in New Issue
Block a user