18 lines
457 B
TypeScript

import { Selector, createSelector } from '@ngrx/store';
import { LoginResponse } from '@ucap-webmessenger/protocol-authentication';
// tslint:disable-next-line: no-empty-interface
export interface State {
loginRes: LoginResponse | null;
}
export const initialState: State = {
loginRes: null,
};
export function selectors<S>(selector: Selector<any, State>) {
return {
loginRes: createSelector(selector, (state: State) => state.loginRes),
};
}