import { createSelector } from 'reselect';

/**
 * Direct selector to the capFacebookPreview state domain
 */
const selectCapFacebookPreviewDomain = () => (state) => state.get('facebookPreview');

/**
 * Other specific selectors
 */


/**
 * Default selector used by CapFacebookPreview
 */

const makeSelectCapFacebookPreview = () => createSelector(
  selectCapFacebookPreviewDomain(),
  (substate) => substate && substate.toJS()
);

export {
  selectCapFacebookPreviewDomain,
  makeSelectCapFacebookPreview,
};
