1import { useCallback } from 'react';
3import useDetailsStore from './useDetailsStore';
4import useBirthdaysStore from './useBirthdaysStore';
5import useInvitesStore from './useInvitesStore';
6import useControlledPointsStore from './useControlledPointsStore';
8export default function usePointStore() {
9 const { syncDetails, ...details } = useDetailsStore();
10 const { syncBirthday, ...birthdays } = useBirthdaysStore();
11 const { syncInvites, ...invites } = useInvitesStore();
15 } = useControlledPointsStore();
17 // sync all of the on-chain info required to display a foreign point
18 const syncForeignPoint = useCallback(async point => Promise.all([]), []);
20 // sync all of the on-chain info required for a point that the user owns
21 const syncOwnedPoint = useCallback(
28 [syncDetails, syncBirthday, syncInvites]
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list