import React from 'react';
import * as LucideIcons from 'lucide-react';
import { X } from 'lucide-react';
const UserAvatarPicker = ({ avatarOptions, currentAvatarId, onSelect, onClose }) => {
const resolveIcon = (name) => LucideIcons[name] || LucideIcons.User;
return (
e.stopPropagation()}>
Choose Your Avatar
{avatarOptions.map(opt => {
const Icon = resolveIcon(opt.icon);
const isSelected = currentAvatarId === opt.id;
return (
);
})}
);
};
export default UserAvatarPicker;