Something went wrong. Try again.
An atproto AppView for tracking a Magic: The Gathering collection github.com/eth0net/manaweb
appview atproto mtg rust typescript
Something went wrong. Try again.
376 B · 10 lines
TypeScript
at main
1234567891011import { createContext, useContext } from "react";import type { Holdings } from "./cards";
// A card row sits four components below where the session does.export const Owning = createContext<Holdings | null>(null);
// Null while signed out, which is what leaves the rows with nothing to press.export function useOwning(): Holdings | null { return useContext(Owning);}