import { Module } from '@ringcentral-integration/commons/lib/di' ; import { proxify } from '@ringcentral-integration/commons/lib/proxy/proxify' ; import { RcUIModuleV2 , UIFunctions , UIProps , } from '@ringcentral-integration/core' ; import { ThemeContainerProps } from '../../containers/ThemeContainer/ThemeContainer.interface' ; import { Deps } from './ThemeUI.interface' ; @ Module ( { name : 'ThemeUI' , deps : [ 'Theme' ] , } ) export class ThemeUI extends RcUIModuleV2 < Deps > { constructor ( deps ) { super ( { deps } ) ; } @ proxify async setThemeType ( type ) { this . _deps . theme . setThemeType ( type ) ; } getUIProps ( { theme } ) { return { theme : this . _deps . theme . theme ?? theme , variable : this . _deps . theme . variable , } ; } getUIFunctions ( ) { return { } ; } }