import ButtonBackHeader from "@/components/buttonBackHeader"
import ButtonSaveHeader from "@/components/buttonSaveHeader"
import { InputForm } from "@/components/inputForm"
import Styles from "@/constants/Styles"
import { router, Stack } from "expo-router"
import { SafeAreaView, ScrollView, ToastAndroid, View } from "react-native"

export default function EditDiscussionGeneral() {
   return (
      <SafeAreaView>
         <Stack.Screen
            options={{
               headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
               headerTitle: 'Edit Diskusi',
               headerTitleAlign: 'center',
               headerRight: () => <ButtonSaveHeader category="update" onPress={() => {
                  ToastAndroid.show('Berhasil mengubah data', ToastAndroid.SHORT)
                  router.back()
               }} />
            }}
         />
         <ScrollView>
            <View style={[Styles.p15]}>
               <InputForm label="Judul" type="default" placeholder="Judul" required />
               <InputForm label="Diskusi" type="default" placeholder="Hal yang didiskusikan" required />
               {/* <ButtonForm
                  text="SIMPAN"
                  onPress={() => {
                     AlertKonfirmasi({
                        title: 'Konfirmasi',
                        desc: 'Apakah anda yakin ingin mengubah data?',
                        onPress: () => {
                           ToastAndroid.show('Berhasil mengubah data', ToastAndroid.SHORT)
                           router.back()
                        }
                     })
                  }} /> */}
            </View>
         </ScrollView>
      </SafeAreaView>
   )
}