import React, { useState } from "react"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { User, Briefcase, MapPin } from "lucide-react"; export default function ProfileSetupStep({ data, onNext, currentUser }) { const [profile, setProfile] = useState({ full_name: data.full_name || currentUser?.full_name || "", email: data.email || currentUser?.email || "", phone: data.phone || "", address: data.address || "", city: data.city || "", position: data.position || "", department: data.department || "", hub_location: data.hub_location || "", employment_type: data.employment_type || "Full Time", english_level: data.english_level || "Fluent", }); const handleSubmit = (e) => { e.preventDefault(); onNext({ type: 'profile', data: profile }); }; const handleChange = (field, value) => { setProfile(prev => ({ ...prev, [field]: value })); }; return (

Profile Setup

Tell us about yourself

{/* Personal Information */}
Personal Information
handleChange('full_name', e.target.value)} required placeholder="John Doe" />
handleChange('email', e.target.value)} required placeholder="john@example.com" />
handleChange('phone', e.target.value)} required placeholder="(555) 123-4567" />
handleChange('city', e.target.value)} required placeholder="San Francisco" />
handleChange('address', e.target.value)} placeholder="123 Main St" />
{/* Employment Details */}
Employment Details
handleChange('position', e.target.value)} required placeholder="e.g., Server, Chef, Bartender" />
{/* Location */}
Work Location
handleChange('hub_location', e.target.value)} placeholder="e.g., Downtown SF, Bay Area" />
); }