/** * Category Tabs component for mobile Help screen */ import React from 'react'; import { Text, TouchableOpacity, ScrollView } from 'react-native'; import type { HelpSection } from '../types'; interface CategoryTabsProps { sections: Array<{ id: HelpSection; label: string; show: boolean }>; activeSection: HelpSection; onSectionChange: (section: HelpSection) => void; } export function CategoryTabs({ sections, activeSection, onSectionChange }: CategoryTabsProps) { const visibleSections = sections.filter((s) => s.show); return ( {visibleSections.map((section) => ( onSectionChange(section.id)} className={`px-4 py-2 mr-2 rounded-full ${ activeSection === section.id ? 'bg-blue-500 dark:bg-blue-600' : 'bg-gray-100 dark:bg-gray-800' }`} > {section.label} ))} ); }