mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:46:29 +00:00
7f8e6637e4
Extract NextAuth configuration into a shared library, load admin sidebar items from role permissions, and update related RBAC types and UI.
25 lines
1.0 KiB
TypeScript
25 lines
1.0 KiB
TypeScript
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; |