import Image from 'next/image' import { UserInfo, Avatar, ProfileSection, ReadOnlyText, EditButton, Title, Label, Input } from '../styled' import { SkeletonProfile } from '../Skeleton' export const ProfileInfo = ({ dataForm = {}, editingAddress = false, asEdited = false, editingDataProfile = false, editingProfile = false, loadingSubmit = false, loading = true, handleProfileEditClick = () => { return null }, handleAddressEditClick = () => { return null }, handleProfileDataEditClick = () => { return null }, onChange = () => { return null } }) => { const label = editingDataProfile ? 'Guardar' : 'Editar' const labelProfile = (editingProfile ? 'Guardar' : 'Editar') if (loading) return return (
Profile Image {loadingSubmit ? 'Cargando' : labelProfile} {editingProfile ? : {dataForm?.username} } {dataForm?.email}
Mi perfil Información personal {loadingSubmit ? 'Cargando' : label} <> {editingDataProfile ? ( ) : ( {dataForm?.username} )} {editingDataProfile ? ( ) : ( {dataForm?.lastName} )} {editingDataProfile ? ( ) : ( {dataForm?.upPhone} )} {dataForm?.email} {loadingSubmit ? 'Cargando' : (editingAddress ? 'Guardar' : 'Editar')} {editingAddress ? ( <> ) : ( <> Colombia )}
) }