import React from 'react'; import { StyleProp, View, ViewStyle } from 'react-native'; import { Icon, Image, Text, createStyleSheet, useUIKitTheme } from '@gathertown/uikit-react-native-foundation'; import { truncatedCount } from '@gathertown/uikit-utils'; type Props = { url: string; count: number; reacted: boolean; style: StyleProp; }; const ReactionRoundedButton = ({ url, count, reacted, style }: Props) => { const { colors } = useUIKitTheme(); const color = colors.ui.reaction.rounded; return ( {truncatedCount(count, 99, '')} ); }; ReactionRoundedButton.More = ({ pressed }: { pressed: boolean }) => { const { colors } = useUIKitTheme(); const color = colors.ui.reaction.rounded; return ( ); }; const styles = createStyleSheet({ reactionContainer: { flexDirection: 'row', justifyContent: 'center', alignItems: 'center', width: 52, borderRadius: 24, paddingVertical: 5, paddingHorizontal: 8, }, emoji: { width: 20, height: 20, marginRight: 4, }, count: { width: 13, textAlign: 'left', }, }); export default ReactionRoundedButton;