import React, { useState } from "react"; import { View } from "react-native"; import { router } from "expo-router"; import { Button } from "@/components/ui/Button"; import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView"; import { Input } from "@/components/ui/Input"; import { Text } from "@/components/ui/Text"; import { useToast } from "@/components/ui/Toast"; import { useCreateBookmarkList } from "@karakeep/shared-react/hooks/lists"; const NewListPage = () => { const dismiss = () => { router.back(); }; const { toast } = useToast(); const [text, setText] = useState(""); const { mutate, isPending } = useCreateBookmarkList({ onSuccess: () => { dismiss(); }, onError: () => { toast({ message: "Something went wrong", variant: "destructive", }); }, }); const onSubmit = () => { mutate({ name: text, icon: "🚀", }); }; return ( 🚀 ); }; export default NewListPage;