feat(chat): add support action cards and live entitlements
This commit is contained in:
@@ -18,6 +18,7 @@ interface UserState {
|
||||
avatarUrl: string | null;
|
||||
isVip: boolean;
|
||||
creditBalance: number;
|
||||
entitlements: MachineContext["entitlements"];
|
||||
}
|
||||
|
||||
type UserSnapshot = SnapshotFrom<typeof userMachine>;
|
||||
@@ -59,5 +60,6 @@ function selectUserState(state: UserSnapshot): UserState {
|
||||
avatarUrl: state.context.avatarUrl,
|
||||
isVip: state.context.isVip,
|
||||
creditBalance: state.context.creditBalance,
|
||||
entitlements: state.context.entitlements,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user