import { KeyboardAvoidingView, Platform, ScrollView, View } from "react-native";
import { SafeAreaView } from "react-native-safe-area-context";
import WithdrawForm from "./WithdrawForm";
import BackButtonTitle from "@/components/ui/BackButtonTitle";

export default function CreateWithdraw() {
  return (
    <SafeAreaView className=" h-full bg-white px-4">
       <BackButtonTitle title={"Withdraw Funds"} />
      <KeyboardAvoidingView
        behavior={Platform.OS === "ios" ? "padding" : "height"}
        style={{ flex: 1 }}
        enabled={true}
      >
        <ScrollView
          className="flex-1"
          contentContainerStyle={{ flexGrow: 1, justifyContent: "flex-start" }}
          keyboardShouldPersistTaps="handled"
          showsVerticalScrollIndicator={false}
          removeClippedSubviews={true}
        >
          <View className="">
            <View className="py-6 ">
              <WithdrawForm />
            </View>
          </View>
        </ScrollView>
      </KeyboardAvoidingView>
    </SafeAreaView>
  );
}
