import { Ionicons } from "@expo/vector-icons"; import type React from "react"; import { TouchableOpacity, View } from "react-native"; import { Text } from "@/components/common/Text"; import { useHaptic } from "@/hooks/useHaptic"; export interface SettingsRowProps { title: string; icon: keyof typeof Ionicons.glyphMap; value?: string; showChevron?: boolean; onPress: () => void; isLast?: boolean; } const ACCENT = "#a855f7"; // single accent (full theming is a separate sub-project) export const SettingsRow: React.FC = ({ title, icon, value, showChevron = true, onPress, isLast = false, }) => { const haptic = useHaptic("light"); // no-op when disableHapticFeedback is set return ( { haptic(); onPress(); }} className={`flex flex-row items-center bg-neutral-900 h-[48px] px-3 ${ isLast ? "" : "border-b border-[#ffffff14]" }`} > {title} {value ? ( {value} ) : null} {showChevron ? ( ) : null} ); };