24 lines
489 B
TypeScript
24 lines
489 B
TypeScript
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>
|
|
);
|
|
};
|