import { Strings } from "@core/i18n"; import { getScreens } from "@core/ui/settings/data"; import { getAssetIDByName } from "@lib/api/assets"; import { useProxy } from "@lib/api/storage"; import { settings } from "@lib/settings"; import { FormDivider, FormRow, FormSection } from "@lib/ui/components/discord/Forms"; import { NavigationNative } from "@metro/common"; import { ErrorBoundary } from "@ui/components"; export default function SettingsSection() { const navigation = NavigationNative.useNavigation(); useProxy(settings); const screens = getScreens(); return ( {screens.filter(s => (s.shouldRender?.() ?? true)).map((s, i) => ( <> } trailing={FormRow.Arrow} onPress={() => navigation.push(s.key)} /> {i !== screens.length - 1 && } ))} ); }