appbaseio/reactivesearch

View on GitHub
packages/web/src/utils/index.js

Summary

Maintainability
A
2 hrs
Test Coverage
import { connect as connectToStore } from 'react-redux';
import { storeKey } from '@appbaseio/reactivecore';

export const connect = (...args) => connectToStore(
    ...args,
    null,
    {
        storeKey,
    },
);

export const composeThemeObject = (ownTheme = {}, userTheme = {}) => ({
    typography: {
        ...ownTheme.typography,
        ...userTheme.typography,
    },
    colors: {
        ...ownTheme.colors,
        ...userTheme.colors,
    },
    component: {
        ...ownTheme.component,
        ...userTheme.component,
    },
});