#import <React/RCTConvert.h>
#import <GoogleSignIn/GoogleSignIn.h>

// GoogleSignIn 7.x removed button style/color enums from the public header.
// Define local typedefs that match the numeric values used by GoogleSignIn 6.x.
typedef NS_ENUM(NSInteger, PortalGIDSignInButtonStyle) {
    PortalGIDSignInButtonStyleStandard = 0,
    PortalGIDSignInButtonStyleWide = 1,
    PortalGIDSignInButtonStyleIconOnly = 2
};

typedef NS_ENUM(NSInteger, PortalGIDSignInButtonColorScheme) {
    PortalGIDSignInButtonColorSchemeLight = 0,
    PortalGIDSignInButtonColorSchemeDark = 1
};

@interface RCTConvert(PortalGoogleSignIn)

+ (PortalGIDSignInButtonStyle)PortalGIDSignInButtonStyle:(id)json;
+ (PortalGIDSignInButtonColorScheme)PortalGIDSignInButtonColorScheme:(id)json;

@end