WebJamApps/JaMmusic

View on GitHub
src/redux/mapStoreToAppTemplateProps.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
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;