'use client';
import React from 'react';
import { usePathname } from 'next/navigation';
import Link from 'next/link';
import { ProtectedRoute, useAuth } from '@/lib/auth';
import { LayoutDashboard, BarChart3, UserCircle } from 'lucide-react';
export default function AppLayoutClient({
children,
}: {
children: React.ReactNode;
}) {
const { signOut, user } = useAuth();
const pathname = usePathname();
const navigationItems = [
{ name: 'Dashboard', href: '/dashboard', icon: },
{ name: 'Analytics', href: '/analytics', icon: },
{ name: 'Account', href: '/account', icon: },
];
const handleSignOut = async () => {
await signOut();
};
return (
{/* 侧边栏导航 */}
ShortURL Analytics
{/* 主内容区域 */}
{/* 顶部导航栏 */}
{/* 页面内容 */}
{children}
);
}