"use client" import { LogOut } from "lucide-react" import { Button } from "@/components/ui/button" import { Input } from "@/components/ui/input" import { Label } from "@/components/ui/label" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { useUserProfile } from "@/lib/hooks" import { Skeleton } from "@/components/ui/skeleton" interface ProfilePageProps { params: Promise<{ locale: string }> } export default function ClientProfilePage(props: ProfilePageProps) { const { data: user, isLoading, error } = useUserProfile() const translations = { profile: "Профиль", firstName: "Имя", lastName: "Фамилия", phone: "Номер телефона", email: "Email", logout: "Выйти", loading: "Загрузка...", } const handleLogout = () => { // Clear auth token window.location.href = "/" } if (isLoading) { return (
Failed to load profile