{popoverInfo.name} | diff --git a/src/contexts/friend.ts b/src/contexts/friend.ts new file mode 100644 index 00000000..389dbb9b --- /dev/null +++ b/src/contexts/friend.ts @@ -0,0 +1,52 @@ +import { Immutable, Draft } from 'immer'; +import React from 'react'; + +import { + defaultFriendScheduleData, + FriendInfo, + FriendScheduleData, + FriendTermData, +} from '../data/types'; +import { ErrorWithFields } from '../log'; + +export type FriendContextData = Immutable<{ friends: FriendScheduleData }>; +export type FriendContextSetters = { + updateFriendTermData: ( + applyDraft: ( + draft: Draft