import { StyleSheet } from "react-native"; import React, { useState } from "react"; import { Button, Colors, Dialog, Drawer, Text, View, PanningProvider, } from "react-native-ui-lib"; import { useGroceryContext } from "@/contexts/GroceryContext"; import { FontAwesome6 } from "@expo/vector-icons"; interface AddGroceryItemProps { visible: boolean; onClose: () => void; } const AddGroceryItem = () => { const { isAddingGrocery, setIsAddingGrocery } = useGroceryContext(); const [visible, setVisible] = useState(false); const handleShowDialog = () => { setVisible(true); }; const handleHideDialog = () => { setVisible(false); }; return (