src/redux/mapStoreToAppTemplateProps.ts
import type { AGClientSocket } from 'socketcluster-client';
import type { Store } from './mapStoreToProps';
interface TStore extends Store {
sc: { scc: AGClientSocket; userCount: number, heartBeat: string };
}
const mapStoreToProps = (store: TStore): Record<string, unknown> => ({
heartBeat: store.sc.heartBeat,
userCount: store.sc.userCount,
});
export default mapStoreToProps;