import { Pressable, StyleSheet, Text, View } from 'react-native'; import { colors, fonts, spacing } from '../theme/proulr-theme'; export function SectionHeader({ title, action, onAction, }: { title: string; action?: string; onAction?: () => void; }) { return ( {title} {action && onAction ? ( {action} ) : null} ); } const styles = StyleSheet.create({ sectionHeaderRow: { flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', marginBottom: spacing.sm, marginTop: spacing.xl, }, sectionHeader: { color: colors.textSecondary, fontSize: 14, fontFamily: fonts.semibold, }, sectionAction: { color: colors.accentText, fontSize: 13, fontFamily: fonts.semibold, }, });