import React from 'react'; import { View, Text, StyleSheet, Pressable } from 'react-native'; import { useTheme } from '../../../theme'; interface AgentSectionHeaderProps { title: string; subtitle?: string; actionTitle?: string; onAction?: () => void; } export const AgentSectionHeader = ({ title, subtitle, actionTitle, onAction, }: AgentSectionHeaderProps) => { const theme = useTheme(); return ( {title} {subtitle && ( {subtitle} )} {actionTitle && onAction && ( {actionTitle} )} ); }; const styles = StyleSheet.create({ container: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'flex-end', marginBottom: 16, }, titleContainer: { flex: 1, }, title: { fontSize: 18, fontWeight: '700', }, subtitle: { fontSize: 13, marginTop: 2, }, action: { fontSize: 14, fontWeight: '600', }, });