import React from "react"; import { useNavigation } from "../../context/NavigationContext"; import { SettingsRow, SettingsSection } from "../settings-row"; import { useAppConfig } from "../../context/AppConfigContext"; export interface SupportSectionProps { onClose: () => void; /** Wire to the app's help screen / web URL. Optional. */ onOpenHelp?: () => void; /** Wire to the app's about modal / screen. Optional. */ onOpenAbout?: () => void; } /** Generic SUPPORT section — Help, About, Privacy Policy, Terms of Service. */ export function SupportSection({ onClose, onOpenHelp, onOpenAbout }: SupportSectionProps) { const router = useNavigation(); const { routes } = useAppConfig(); return ( { onClose(); router.push(routes.privacyPolicy); }} showChevron /> { onClose(); router.push(routes.termsOfService); }} showChevron /> ); }