import { Outlet, Link } from '@tanstack/react-router';
import { useAuthStore } from '../../hooks/use-auth';
import { useThemeStore } from '../../hooks/use-theme';
import { motion } from 'framer-motion';
import { LayoutDashboard, FolderKanban, FileSignature, Users, LogOut, Sun, Moon } from 'lucide-react';
export const MainLayout = () => {
const { isAuthenticated, logout, user } = useAuthStore();
const { theme, toggleTheme } = useThemeStore();
if (!isAuthenticated) {
return ;
}
const NAV_ITEMS = [
{ name: 'Dashboard', path: '/', icon: LayoutDashboard },
{ name: 'Asset Library', path: '/assets', icon: FolderKanban },
{ name: 'Legal Documents', path: '/legal', icon: FileSignature },
{ name: 'Directory', path: '/directory', icon: Users },
];
return (
{/* Sidebar */}
Theme Preference
{user?.email?.charAt(0).toUpperCase()}
{user?.email}
{user?.role}
{/* Main Content */}
{/* Soft Monochromatic Accent Glows */}
);
};
export default MainLayout;