1import { useCallback } from 'react';
3import useDetailsStore from './useDetailsStore';
4import useBirthdaysStore from './useBirthdaysStore';
5import useRekeyDateStore from './useRekeyDateStore';
6import useInvitesStore from './useInvitesStore';
7import useControlledPointsStore from './useControlledPointsStore';
8import useEclipticOwnerStore from './useEclipticOwnerStore';
9import useOptimisticPointDetailsStore from './useOptimisticDetailsStore';
11export default function usePointStore() {
12 const { syncDetails, ...details } = useDetailsStore();
13 const { syncBirthday, ...birthdays } = useBirthdaysStore();
14 const { syncRekeyDate, ...rekeyDates } = useRekeyDateStore();
15 const { syncInvites, ...invites } = useInvitesStore();
19 } = useControlledPointsStore();
20 const ecliptic = useEclipticOwnerStore();
21 const optimistic = useOptimisticPointDetailsStore();
23 // sync all of the on-chain info required to display a known point
24 const syncKnownPoint = useCallback(
29 [syncBirthday, syncRekeyDate]
32 // sync all of the on-chain info required to display a foreign point
33 const syncForeignPoint = useCallback(point => {}, []);
35 // sync all of the on-chain info required for a point that the user owns
36 const syncOwnedPoint = useCallback(
38 syncForeignPoint(point);
39 syncKnownPoint(point);
44 [syncForeignPoint, syncKnownPoint, syncDetails, 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