import { router, useLocalSearchParams } from "expo-router"; import { useState } from "react"; import { SafeAreaView, StyleSheet, Text, TextInput, View } from "react-native"; import { CustomColorPicker, NavigationButton, TypeSelectorSwitch } from "../../../components"; import { useTheme } from "../../contexts/ThemeContext"; const addCategory = () => { const {colors} = useTheme(); const parameters = useLocalSearchParams(); const [categoryName, setCartegoryName] = useState("Enter Category Name..."); const [categoryColor, setCartegoryColor] = useState(null); const [selectedType, setSelectedType] = useState("expense"); return ( Category Editor { setCartegoryName(newName); }}/> { setSelectedType(type); }} /> { setCartegoryColor(color); }}/> { router.back(); }}/> { console.log("Implement Saving here!"); router.back(); }}/> ); } export default addCategory; const styles = StyleSheet.create({ containerStyle: { flex: 1, margin: 10, borderRadius: 10, }, safeAreaViewStyle: { flex: 1, flexDirection: "column" }, headingTextStyle: { fontSize: 40, fontWeight: "bold", alignSelf: "center", marginVertical: 10, }, navigationButtonViewStyle: { flexDirection: "row", justifyContent: "center", marginBottom: 10, }, textInputViewStyle: { borderRadius: 10, paddingVertical: 10, margin: 10, }, textInputStyle: { paddingHorizontal: 10, fontSize: 25, } });