import { useAuthStore } from '../store/authStore'; export default function ChatPage() { const user = useAuthStore((state) => state.user); const logout = useAuthStore((state) => state.logout); const handleLogout = async () => { // TODO: Call logout API logout(); window.location.href = '/auth'; }; return (
Привет, {user?.username}!