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"; interface AddGroceryItemProps { visible: boolean; onClose: () => void; } const AddGroceryItem = () => { const { setIsShopping, isShopping } = useGroceryContext(); const [visible, setVisible] = useState(false); const handleShowDialog = () => { setVisible(true); }; const handleHideDialog = () => { setVisible(false); }; const addGroceryDialog = ( New Grocery Category ); return ( {!isShopping ? (