project setup
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { View } from "react-native";
|
||||
|
||||
import { Button } from "@/components/ui/Button";
|
||||
|
||||
interface AddTodoControlsProps {
|
||||
onAddTodo: () => void;
|
||||
}
|
||||
|
||||
export const AddTodoControls = ({ onAddTodo }: AddTodoControlsProps) => {
|
||||
return (
|
||||
<View className="flex-row">
|
||||
<Button
|
||||
onPress={onAddTodo}
|
||||
icon="note-plus-outline"
|
||||
buttonColor="#6750a4"
|
||||
buttonTextColor="white"
|
||||
disabled={false}
|
||||
>
|
||||
Add Todo
|
||||
</Button>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user