mirrored_repositories/fic-mini-project/lib/domain/usecases
import 'package:dartz/dartz.dart';
import 'package:image_picker/image_picker.dart';

import 'package:fic_mini_project/common/failure.dart';
import 'package:fic_mini_project/domain/entity/user.dart';
import 'package:fic_mini_project/domain/repositories/user_repository.dart';

class UpdateCurrentUser {
  final UserRepository repository;

  UpdateCurrentUser(this.repository);

  Future<Either<Failure, String>> execute(User user, XFile? image) {
    return repository.updateCurrentUser(user, image);
  }
}
