import { ReduxState } from "../types/ReduxState" ; export const getCurrentTheme = ( state ) => { const { availableThemes , currentThemeId } = state . themes ; return availableThemes [ currentThemeId ] ; } ;