diff --git a/packages/frontend/src/features/chips/ChipList.tsx b/packages/frontend/src/features/chips/ChipList.tsx new file mode 100644 index 00000000..fc2c4030 --- /dev/null +++ b/packages/frontend/src/features/chips/ChipList.tsx @@ -0,0 +1,21 @@ +import { useLiveQuery } from "electric-sql/react" +import { db } from "../../db" +import { Flex, Stack, styled } from '#styled-system/jsx'; +import type { Chip } from "../../generated/client"; + +export const ChipList = () => { + const chips = useLiveQuery(db.chip.liveMany()) + + if (!chips.results) return null + + return + {chips.results.map(chip => )} + +} + +const ChipEditable = ({ chip }: { chip: Chip }) => { + return + {chip.label} + {chip.value} + +} \ No newline at end of file