import React from 'react'; import { Pressable, StyleSheet, Text, View } from 'react-native'; import Ionicons from '@react-native-vector-icons/ionicons'; import { Card } from '../../../components'; import { useTheme, fontFamily } from '../../../theme'; import { AwarenessArticle } from '../types'; interface AwarenessCardProps { article: AwarenessArticle; isBookmarked: boolean; onToggleBookmark: () => void; onPress: () => void; } export const AwarenessCard = ({ article, isBookmarked, onToggleBookmark, onPress, }: AwarenessCardProps) => { const theme = useTheme(); return ( {article.category} {article.isUrgent && ( URGENT )} {article.title} {article.description} {article.tags.slice(0, 2).map((tag) => ( #{tag} ))} Read More ); }; const styles = StyleSheet.create({ card: { padding: 16, marginBottom: 16, gap: 12, }, header: { flexDirection: 'row', gap: 12, alignItems: 'center', }, iconFrame: { width: 44, height: 44, borderRadius: 14, alignItems: 'center', justifyContent: 'center', }, headerInfo: { flex: 1, gap: 2, }, titleRow: { flexDirection: 'row', alignItems: 'center', gap: 8, }, category: { fontSize: 11, fontFamily: fontFamily.bold, textTransform: 'uppercase', letterSpacing: 0.5, }, urgentBadge: { paddingHorizontal: 6, paddingVertical: 2, borderRadius: 4, }, urgentText: { fontSize: 9, fontFamily: fontFamily.bold, }, title: { fontSize: 16, fontFamily: fontFamily.bold, }, bookmarkBtn: { padding: 4, }, description: { fontSize: 13, lineHeight: 18, }, footer: { flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', marginTop: 4, }, tags: { flexDirection: 'row', gap: 8, }, tag: { paddingHorizontal: 8, paddingVertical: 4, borderRadius: 8, }, tagText: { fontSize: 10, fontFamily: fontFamily.semibold, }, readMore: { flexDirection: 'row', alignItems: 'center', gap: 4, }, readMoreText: { fontSize: 13, fontFamily: fontFamily.bold, }, });