import { Pressable, StyleSheet, Text } from 'react-native'; import { AppIcon } from './app-icon'; import { fonts, m3Colors, m3Shape, spacing } from '../theme/proulr-theme'; export function ComposeAudiencePill({ label, onPress, }: { label: string; onPress?: () => void; }) { return ( [styles.pill, pressed && onPress && { opacity: 0.82 }]} > {label} ); } const styles = StyleSheet.create({ pill: { flexDirection: 'row', alignItems: 'center', gap: spacing.xs, paddingHorizontal: spacing.sm, paddingVertical: spacing.xs, borderRadius: m3Shape.cornerFull, borderWidth: 1, borderColor: m3Colors.primary, backgroundColor: m3Colors.primaryContainer, }, label: { color: m3Colors.onPrimaryContainer, fontFamily: fonts.medium, fontSize: 13, }, });