import { Platform, Pressable, Switch, View, type SwitchProps } from "react-native"; import { useAppearancePreferences } from "../features/settings/appearance/AppearancePreferencesProvider"; import { SymbolView } from "./AppSymbol"; export function ThemedSwitch(props: SwitchProps) { const { materialYouStyleLayoutActive } = useAppearancePreferences(); if (materialYouStyleLayoutActive) { return ( props.onValueChange?.(!props.value)} style={props.style} testID={props.testID} className={props.disabled ? "opacity-40" : "active:opacity-70"} > ); } return ( ); }