#ifdef RCT_NEW_ARCH_ENABLED

#import "RCTNativeThumbnailFactoryModule.h"
#import "react_native_prestoplay_thumbnails-Swift.h"

@interface RCTNativeThumbnailFactoryModule ()
@property (nonatomic, strong) RCTNativeThumbnailFactoryModuleSwift *instance;
@end

@implementation RCTNativeThumbnailFactoryModule

+ (NSString *)moduleName {
    return @"NativeThumbnailFactoryModule";
}

+ (BOOL)requiresMainQueueSetup {
    return YES;
}

- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:(const facebook::react::ObjCTurboModule::InitParams &)params {
    return std::make_shared<facebook::react::NativeThumbnailFactoryModuleSpecJSI>(params);
}

- (void)initialize {
    self.instance = [[RCTNativeThumbnailFactoryModuleSwift alloc] init];
}

- (RCTNativeThumbnailFactoryModuleSwift*)getSwiftInstance {
    return self.instance;
}

@end

#endif
