people.ts
This file
Path
apps/web/src/client/people.ts
8 lines · 282 bytes · TypeScript
Last changed by
Merge build/comments-web-rest into mainoscabrielbefore adoption0eb1248
History of this fileTake it
123456789import type { Handle } from "@repo/protocol/ids";import { Atom } from "effect/reactivity";
import { ContractsClient } from "../surfaces.ts";
export const creditsAtom = Atom.family((handle: Handle) => Atom.withServerValueInitial(ContractsClient.query("credits", { handle })));