mirror of
https://github.com/urosran/cally.git
synced 2025-07-15 09:45:20 +00:00
82 lines
1.8 KiB
TypeScript
82 lines
1.8 KiB
TypeScript
import React from "react";
|
|
import { Dialog, Button, Text, View } from "react-native-ui-lib";
|
|
import { StyleSheet } from "react-native";
|
|
|
|
interface FeedbackDialogProps {
|
|
visible: boolean;
|
|
title: string;
|
|
onDismiss: () => void;
|
|
onConfirm: () => void;
|
|
}
|
|
|
|
const FeedbackDialog: React.FC<FeedbackDialogProps> = ({
|
|
visible,
|
|
title,
|
|
onDismiss,
|
|
onConfirm,
|
|
}) => {
|
|
return (
|
|
<Dialog
|
|
visible={visible}
|
|
onDismiss={onDismiss}
|
|
containerStyle={styles.dialog}
|
|
>
|
|
<Text center style={styles.title}>
|
|
Delete Note
|
|
</Text>
|
|
<View center>
|
|
<Text style={styles.text} center>
|
|
Are you sure you want to delete this feedback? {"\n\n"}
|
|
<Text style={{ fontSize: 16, fontFamily: "PlusJakartaSans_700Bold" }}>
|
|
{title}
|
|
</Text>
|
|
</Text>
|
|
</View>
|
|
<View row right gap-8>
|
|
<Button
|
|
label="Cancel"
|
|
onPress={onDismiss}
|
|
style={styles.cancelBtn}
|
|
color="#999999"
|
|
labelStyle={{ fontFamily: "Poppins_500Medium", fontSize: 13.53 }}
|
|
/>
|
|
<Button
|
|
label="Yes"
|
|
onPress={onConfirm}
|
|
style={styles.confirmBtn}
|
|
labelStyle={{ fontFamily: "PlusJakartaSans_500Medium" }}
|
|
/>
|
|
</View>
|
|
</Dialog>
|
|
);
|
|
};
|
|
|
|
// Empty stylesheet for future styles
|
|
const styles = StyleSheet.create({
|
|
confirmBtn: {
|
|
backgroundColor: "#ea156d",
|
|
},
|
|
cancelBtn: {
|
|
backgroundColor: "white",
|
|
},
|
|
dialog: {
|
|
backgroundColor: "white",
|
|
paddingHorizontal: 25,
|
|
paddingTop: 35,
|
|
paddingBottom: 17,
|
|
borderRadius: 20,
|
|
},
|
|
title: {
|
|
fontFamily: "Manrope_600SemiBold",
|
|
fontSize: 22,
|
|
marginBottom: 20,
|
|
},
|
|
text: {
|
|
fontFamily: "PlusJakartaSans_400Regular",
|
|
fontSize: 16,
|
|
marginBottom: 25,
|
|
},
|
|
});
|
|
|
|
export default FeedbackDialog;
|