import 'package:dartz/dartz.dart';
import 'package:injectable/injectable.dart';
import '../../../core/errors/failures.dart';
import '../base_usecase.dart';

class CheckUsernameAvailabilityParams {
  final String username;

  const CheckUsernameAvailabilityParams({required this.username});
}

@injectable
class CheckUsernameAvailabilityUseCase extends UseCase<bool, CheckUsernameAvailabilityParams> {
  CheckUsernameAvailabilityUseCase();

  @override
  Future<Either<Failure, bool>> call(CheckUsernameAvailabilityParams params) async {
    // 백엔드에서 지원하지 않으므로 항상 true 반환
    return const Right(true);
  }
}