withTheme()
Home > @gooddata/sdk-ui-theme-provider > withTheme
withTheme() function
Injects both theme object and isThemeLoading flag into component as properties
Signature:
export declare function withTheme<T extends {
    theme?: ITheme;
    workspace?: string;
}>(Component: ComponentType<T>): ComponentType<Omit<T, "theme" | "themeIsLoading" | "themeStatus">>;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| Component | ComponentType<T> | 
Returns:
ComponentType<Omit<T, "theme" | "themeIsLoading" | "themeStatus">>