"use client"; import { Camera, Github, Globe, Linkedin, Twitter } from "lucide-react"; import { useState } from "react"; import { FileUpload, FileUploadTrigger } from "@/components/diceui/file-upload"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Separator } from "@/components/ui/separator"; import { Textarea } from "@/components/ui/textarea"; import { cn } from "@/lib/utils"; interface ProfileFormData { name: string; email: string; username: string; avatar?: string; bio?: string; jobTitle?: string; company?: string; location?: string; website?: string; socialLinks?: { twitter?: string; linkedin?: string; github?: string; }; } interface SettingsProfile2Props { defaultValues?: Partial; onSave?: (data: ProfileFormData) => void; className?: string; } const SettingsProfile2 = ({ defaultValues = { name: "ژوبین چناری", email: "jordan.chen@email.com", username: "jordanchen", avatar: "/block-media/shadcnblocks/block/avatar/avatar3.jpg", bio: "مهندس ارشد پلتفرم فروش؛ روی یکپارچه‌سازی CRM، اتوماسیون پایپ‌لاین و ابزارهای داخلی تیم تمرکز دارم.", jobTitle: "مهندس ارشد پلتفرم", company: "نوآوران داده", location: "تهران، ایران", website: "https://jordanchen.dev", socialLinks: { twitter: "jordanchen", linkedin: "jordanchen", github: "jordanchen", }, }, className, }: SettingsProfile2Props) => { const [avatarFiles, setAvatarFiles] = useState([]); const initials = defaultValues.name ?.split(" ") .map((n) => n[0]) .join("") .toUpperCase(); const avatarPreview = avatarFiles.length > 0 ? URL.createObjectURL(avatarFiles[0]) : defaultValues.avatar; return (
ویرایش پروفایل اطلاعاتی که همکاران در فضای کاری می‌بینند را مدیریت کنید. {/* Avatar Section */}
{initials}

عکس پروفایل

روی آیکون دوربین کلیک کنید تا عکس جدید بارگذاری شود.
توصیه: آواتار مربعی، حداقل ۴۰۰×۴۰۰ پیکسل.

{/* Personal Information */}

اطلاعات پایه

@