|
1 | | -import React from 'react'; |
| 1 | +import React, { useMemo } from 'react'; |
2 | 2 | import { StyleSheet, View } from 'react-native'; |
3 | 3 |
|
4 | 4 | import { useTheme } from '../../../contexts/themeContext/ThemeContext'; |
5 | | -import { CurveLineLeftUpReply } from '../../../icons'; |
| 5 | +import { ArrowShareLeft } from '../../../icons'; |
| 6 | +import { primitives } from '../../../theme'; |
6 | 7 |
|
7 | 8 | export const MessageSwipeContent = () => { |
| 9 | + const styles = useStyles(); |
| 10 | + const { |
| 11 | + theme: { semantics }, |
| 12 | + } = useTheme(); |
| 13 | + |
| 14 | + return ( |
| 15 | + <View style={styles.container}> |
| 16 | + <ArrowShareLeft stroke={semantics.buttonSecondaryTextOnAccent} height={20} width={20} /> |
| 17 | + </View> |
| 18 | + ); |
| 19 | +}; |
| 20 | + |
| 21 | +const useStyles = () => { |
8 | 22 | const { |
9 | 23 | theme: { |
10 | | - semantics, |
11 | 24 | messageSimple: { |
12 | 25 | swipeLeftContent: { container }, |
13 | 26 | }, |
| 27 | + semantics, |
14 | 28 | }, |
15 | 29 | } = useTheme(); |
16 | | - return ( |
17 | | - <View style={[styles.container, container]}> |
18 | | - <CurveLineLeftUpReply pathFill={semantics.textSecondary} /> |
19 | | - </View> |
20 | | - ); |
21 | | -}; |
22 | 30 |
|
23 | | -const styles = StyleSheet.create({ |
24 | | - container: { |
25 | | - justifyContent: 'center', |
26 | | - paddingRight: 16, |
27 | | - }, |
28 | | -}); |
| 31 | + return useMemo(() => { |
| 32 | + return StyleSheet.create({ |
| 33 | + container: { |
| 34 | + backgroundColor: semantics.buttonSecondaryBg, |
| 35 | + height: 32, |
| 36 | + width: 32, |
| 37 | + alignItems: 'center', |
| 38 | + justifyContent: 'center', |
| 39 | + borderRadius: primitives.radiusMax, |
| 40 | + ...container, |
| 41 | + }, |
| 42 | + }); |
| 43 | + }, [container, semantics.buttonSecondaryBg]); |
| 44 | +}; |
0 commit comments