import { useTranslation } from "react-i18next"; import { Switch, Text, View } from "react-native"; import { useSettings } from "@/utils/atoms/settings"; export const KefinTweaksSettings = () => { const { settings, updateSettings } = useSettings(); const { t } = useTranslation(); const isEnabled = settings?.useKefinTweaks ?? false; return ( {t("home.settings.plugins.kefinTweaks.watchlist_enabler")} {isEnabled ? t("Watchlist On") : t("Watchlist Off")} updateSettings({ useKefinTweaks: value })} trackColor={{ false: "#555", true: "purple" }} thumbColor={isEnabled ? "#fff" : "#ccc"} /> ); };