You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { Text } from "@/components/ui/text";
|
|
|
|
import { VStack } from "@/components/ui/vstack";
|
|
|
|
import { useTodos } from "@/store/useTodos";
|
|
|
|
import { useState } from "react";
|
|
|
|
import { SafeAreaView } from "react-native-safe-area-context";
|
|
|
|
|
|
|
|
export default function ActiveTab() {
|
|
|
|
const { activeTodos, leftCount, add, toggle, completeAll } = useTodos();
|
|
|
|
const [title, setTitle] = useState("");
|
|
|
|
|
|
|
|
const onAdd = () => {
|
|
|
|
add(title);
|
|
|
|
setTitle("");
|
|
|
|
};
|
|
|
|
|
|
|
|
return (
|
|
|
|
<SafeAreaView className="flex-1">
|
|
|
|
<VStack className="flex-1 p-4 gap-3">
|
|
|
|
<Text className="text-2xl font-bold">할일</Text>
|
|
|
|
</VStack>
|
|
|
|
</SafeAreaView>
|
|
|
|
);
|
|
|
|
}
|