feat: add tui app

This commit is contained in:
Max Koon
2025-11-14 13:26:15 -05:00
parent 058f2bb94f
commit 5b14b4e7a4
22 changed files with 2395 additions and 128 deletions

15
packages/ui/src/index.tsx Normal file
View File

@@ -0,0 +1,15 @@
import { Text } from "react-native";
import { List } from "./list";
import { useQuery } from "@rocicorp/zero/react";
import { queries } from '@money/shared';
export function Settings() {
const [items] = useQuery(queries.getItems(null));
return <List
items={items}
renderItem={({ item, isSelected }) => <Text style={{ color: isSelected ? 'white' : 'black' }}>{item.name}</Text>}
/>
}