import { FC } from "react" import { TextStyle } from "react-native" import { ListItem } from "@/components/ListItem" import { Screen } from "@/components/Screen" import { Text } from "@/components/Text" import type { MainTabScreenProps } from "@/navigators/navigationTypes" import { useAppTheme } from "@/theme/context" import { $styles } from "@/theme/styles" import type { ThemedStyle } from "@/theme/types" import { openLinkInBrowser } from "@/utils/openLinkInBrowser" const COMMUNITY_LINKS = [ { icon: "slack" as const, titleTx: "communityScreen:joinSlackLink" as const, url: "https://community.infinite.red/", }, { icon: "github" as const, titleTx: "communityScreen:contributeToIgniteLink" as const, url: "https://github.com/infinitered/ignite", }, { icon: "globe" as const, titleTx: "communityScreen:hireUsLink" as const, url: "https://infinite.red/", }, ] export const CommunityScreen: FC> = () => { const { themed } = useAppTheme() return ( {COMMUNITY_LINKS.map((link, index) => ( openLinkInBrowser(link.url)} bottomSeparator={index < COMMUNITY_LINKS.length - 1} /> ))} ) } const $title: ThemedStyle = ({ spacing }) => ({ marginBottom: spacing.sm, }) const $description: ThemedStyle = ({ spacing }) => ({ marginBottom: spacing.lg, }) const $sectionTitle: ThemedStyle = ({ spacing }) => ({ marginTop: spacing.xxl, })