text: import { createSelector } from '@reduxjs/toolkit'
  
  import { initialState } from './slice'
  
  // First select the relevant part from the state
  const selectDomain = (state) => state.common || initialState
  
  export const selectIsConnected = createSelector(
    [selectDomain],
    (commonState) => commonState.isConnected,
  )
  
  export const selectLoadingClearCache = createSelector(
    [selectDomain],
    (commonState) => commonState.loadingClearCache,
  )
  
  export const selectContentStudioBaseUrl = createSelector(
    [selectDomain],
    (commonState) => commonState.contentStudioBaseUrl,
  )
  
  export const selectDataToolBoxBaseUrl = createSelector(
    [selectDomain],
    (commonState) => commonState.dataToolBoxBaseUrl
  )
  
  export const selectInternalBaseUrl = createSelector(
    [selectDomain],
    (commonState) => commonState.internalBaseUrl
  )
  
  export const selectInternalStatbankUrl = createSelector(
    [selectDomain],
    (commonState) => commonState.internalStatbankUrl
  )
  
  export const selectDashboardOptions = createSelector(
    [selectDomain],
    (commonState) => commonState.dashboardOptions
  )
  
  export const selectServerTime = createSelector(
    [selectDomain],
    (commonState) => commonState.serverTime
  )
  
  export const selectServerTimeReceived = createSelector(
    [selectDomain],
    (commonState) => commonState.serverTimeReceived
  )
  