import { TouchableOpacity, View } from "react-native"; import { Colors } from "@/constants/Colors"; import { Text } from "./Text"; type Props = { title: string; actionLabel?: string; actionDisabled?: boolean; onPressAction?: () => void; }; export const SectionHeader: React.FC = ({ title, actionLabel, actionDisabled = false, onPressAction, }) => { const shouldShowAction = Boolean(actionLabel) && Boolean(onPressAction); return ( {title} {shouldShowAction && ( {actionLabel} )} ); };