import {Button, ButtonSize, DateTimePicker, Dialog, Switch, Text, TextField, View} from "react-native-ui-lib"; import React from "react"; import {AntDesign, Feather, Ionicons} from "@expo/vector-icons"; import {PanningDirectionsEnum} from "react-native-ui-lib/src/incubator/panView"; import {StyleSheet} from "react-native"; import DropModalIcon from "@/assets/svgs/DropModalIcon"; import ClockIcon from "@/assets/svgs/ClockIcon"; import LockIcon from "@/assets/svgs/LockIcon"; import MenuIcon from "@/assets/svgs/MenuIcon"; import {useUpdateEvent} from "@/hooks/firebase/useUpdateEvent"; import {editVisibleAtom, eventForEditAtom} from "@/components/pages/calendar/atoms"; import {useAtom} from "jotai"; const EditEventDialog = () => { const [isVisible, setIsVisible] = useAtom(editVisibleAtom) const [event, setEvent] = useAtom(eventForEditAtom) const {mutateAsync: updateEvent} = useUpdateEvent(); if (!event) return null return ( setIsVisible(false)} containerStyle={{ borderRadius: 10, backgroundColor: "white", width: "100%", alignSelf: "stretch", padding: 0, paddingTop: 4, margin: 0, }} visible={isVisible} > ); }; export default EditEventDialog; const styles = StyleSheet.create({ divider: {height: 1, backgroundColor: "#e4e4e4", marginVertical: 15}, gradient: { height: "25%", position: "absolute", bottom: 0, width: "100%", }, buttonContainer: { position: "absolute", bottom: 25, width: "100%", }, button: { backgroundColor: "rgb(253, 23, 117)", paddingVertical: 20, }, topBtn: { backgroundColor: "white", color: "#05a8b6", }, rotateSwitch: { marginLeft: 35, marginBottom: 10, marginTop: 25, }, });