'use client'; import { useState } from 'react'; import Image from 'next/image'; interface ProfileSettingsFormProps { initialData?: { fullName: string; career: string; email: string; phone: string; location: string; }; onSave?: (data: { fullName: string; career: string; email: string; phone: string; location: string; }) => void; descriptionText?: string; } export function ProfileSettingsForm({ initialData = { fullName: 'Brain Neeland', career: 'Real Estate Agent', email: 'Brain.Neeland1234@gmail.com', phone: '+917483849544', location: 'New York', }, onSave, descriptionText = 'This information will be displayed on your public profile page.', }: ProfileSettingsFormProps) { const [formData, setFormData] = useState(initialData); const handleChange = (field: string, value: string) => { setFormData((prev) => ({ ...prev, [field]: value })); }; const handleSave = () => { if (onSave) { onSave(formData); } else { console.log('Saving profile settings:', formData); } }; const handleCancel = () => { setFormData(initialData); }; return (
{descriptionText}
Public Picture
Supported formats: JPEG, PNG, GIF Max file size: 2MB