import { Host } from "@expo/ui/jetpack-compose"; import { MaterialSegmentedButtons } from "./MaterialSegmentedButtons.android"; import { View } from "react-native"; import { useAppearancePreferences } from "../features/settings/appearance/AppearancePreferencesProvider"; import type { SegmentedControlProps } from "./SegmentedControl"; export function MaterialSegmentedControl( props: SegmentedControlProps, ) { const { themeAppearance } = useAppearancePreferences(); return ( {props.options.map((option) => ( props.onSelect(option.value)} className="flex-1" /> ))} ); }