"use client" import { useState, useEffect } from "react" interface User { first_name: string last_name: string phone: string email?: string } interface ProfileContentProps { locale: string } export default function ProfilePageContent({ locale }: ProfileContentProps) { const [user, setUser] = useState(null) const [loading, setLoading] = useState(true) const t = { profile: "Профиль", firstName: "Имя", lastName: "Фамилия", phone: "Номер телефона", email: "Email", logout: "Выйти", loading: "Загрузка...", } useEffect(() => { const fetchUserData = () => { setTimeout(() => { setUser({ first_name: "Иван", last_name: "Иванов", phone: "+99361234567", email: "ivan@example.com", }) setLoading(false) }, 500) } fetchUserData() }, []) const handleLogout = () => { window.location.href = "/" } if (loading) { return (

{t.loading}

) } return (

{t.profile}

{/* Profile content */}
) }