+
+ {t("settings.preferences.disableXPrimeAds")}
+
+
+ {t("settings.preferences.disableXPrimeAdsDescription")}
+
+
+ props.setDisableXPrimeAds(!props.disableXPrimeAds)
+ }
+ className="bg-dropdown-background hover:bg-dropdown-hoverBackground select-none my-4 cursor-pointer space-x-3 flex items-center max-w-[25rem] py-3 px-4 rounded-lg"
+ >
+
+
+ {t("settings.preferences.disableXPrimeAdsLabel")}
+
+
+
+ )}
{/* Column */}
diff --git a/src/setup/config.ts b/src/setup/config.ts
index d84bf55c..1e2eaf03 100644
--- a/src/setup/config.ts
+++ b/src/setup/config.ts
@@ -33,6 +33,7 @@ interface Config {
BANNER_MESSAGE: string;
BANNER_ID: string;
USE_TRAKT: boolean;
+ XPRIME_ADS: boolean;
}
export interface RuntimeConfig {
@@ -62,6 +63,7 @@ export interface RuntimeConfig {
BANNER_MESSAGE: string | null;
BANNER_ID: string | null;
USE_TRAKT: boolean;
+ XPRIME_ADS: boolean;
}
const env: Record