export default function profilePropsProvider(props) {
  const {
    userInfo,
    isEditField,
    avatar,
    visibleMenu,
    onDeniedAvatar,
    onConfirmAvatar,
    showMenu,
    openGallery,
    hideMenu,
    navigateToLogout,
    onChangeCoverAvatar,
    onEditUserInfo,
    editUserInfo,
    onSubmitChangeInfo,
    coverAvatar,
  } = props;
  return {
    userInfo,
    navigateToLogout,
    onEditUserInfo,
    editUserInfo,
    introduceUserProps: {
      userInfo,
      isEditField,
      avatar,
      coverAvatar,
      onDeniedAvatar,
      onConfirmAvatar,
      showMenu,
      hideMenu,
      visibleMenu,
      openGallery,
      onChangeCoverAvatar,
    },
    onSubmitChangeInfo,
  };
}
