import React from "react"; import { View, Text, TouchableOpacity, StyleSheet, ViewStyle, StyleProp, } from "react-native"; import { useTheme } from "../contexts/ThemeContext"; interface SectionHeaderProps { title: string; subtitle?: string; actionLabel?: string; onActionPress?: () => void; style?: StyleProp; } /** * SectionHeader - Clean section header with optional action button * * Usage: * - Divides content into logical sections * - Optional subtitle for additional context * - Optional action button (e.g., "See All", "Add New") */ export function SectionHeader({ title, subtitle, actionLabel, onActionPress, style, }: SectionHeaderProps) { const { colors, typography } = useTheme(); return ( {title} {subtitle && ( {subtitle} )} {actionLabel && onActionPress && ( {actionLabel} )} ); } const styles = StyleSheet.create({ container: { flexDirection: "row", justifyContent: "space-between", alignItems: "center", marginBottom: 12, }, textContainer: { flex: 1, }, });