aboutsummaryrefslogtreecommitdiffstats
path: root/components/RemoveNoteButton.jsx
blob: d88d6b0aac17afa972e090b8db467f24b49f380f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { StyleSheet, Text, View, Pressable } from 'react-native'

const RemoveNoteButton = ({ removeNote }) => (
  <View style={styles.buttonsContainer}>
    <View style={styles.button}>
      <Pressable onPress={removeNote}>
        <Text style={styles.buttonText}>Delete</Text>
      </Pressable>
    </View>
  </View>
);

const styles = StyleSheet.create({
  button: {
    width: 80,
    alignItems: 'center',
    justifyContent: 'center',
    backgroundColor: 'red',
  },
  buttonText: {
    fontWeight: 'bold',
    color: 'white',
  },
  buttonsContainer: {
    flex: 1,
    flexDirection: 'row',
    justifyContent: 'flex-end',
  },
});

export default RemoveNoteButton;