import { Link, useNavigate } from 'react-router-dom' import type { ReactNode } from 'react' import { useAuthStore } from '@/store/auth' export default function AppShell({ title, children, }: { title: string children: ReactNode }) { const { user, logout } = useAuthStore() const navigate = useNavigate() return (
账号安全演示
{user ? (
{user.email}
) : null}

{title}

{children}
) }