function
Source: Context.tsx ↗
withTheme()
Injects both theme object and isThemeLoading flag into component as properties
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”>>