UNPKG

@gravity-ui/uikit

Version:

Gravity UI base styling and components

6 lines (5 loc) 322 B
import type * as React from 'react'; import type { ThemeContextProps } from "./types.js"; export interface WithThemeProps extends Pick<ThemeContextProps, 'theme'> { } export declare function withTheme<T extends WithThemeProps>(WrappedComponent: React.ComponentType<T>): React.ComponentType<Omit<T, keyof WithThemeProps>>;