import { Feather } from "@expo/vector-icons"; import { Image } from "expo-image"; import React from "react"; import { StyleSheet, Text, TouchableOpacity, View } from "react-native"; import { useColors } from "@/hooks/useColors"; import { PostizIntegration } from "@/context/PostizContext"; interface ChannelChipProps { integration: PostizIntegration; selected: boolean; onToggle: () => void; } export function ChannelChip({ integration, selected, onToggle }: ChannelChipProps) { const colors = useColors(); return ( {integration.picture ? ( ) : ( )} {integration.name} {selected && ( )} ); } const styles = StyleSheet.create({ chip: { flexDirection: "row", alignItems: "center", paddingHorizontal: 10, paddingVertical: 6, borderRadius: 20, borderWidth: 1, gap: 6, maxWidth: 150, }, avatar: { width: 20, height: 20, borderRadius: 10, }, avatarFallback: { width: 20, height: 20, borderRadius: 10, alignItems: "center", justifyContent: "center", }, name: { fontSize: 12, fontFamily: "Inter_500Medium", flexShrink: 1, }, });