You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
382 B
8 lines
382 B
import React from 'react';
|
|
import { ThemeProps } from './ThemeProvider';
|
|
export interface ThemedComponent {
|
|
displayName: string;
|
|
}
|
|
declare function withTheme<P = {}, T = {}>(WrappedComponent: React.ComponentType<P & Partial<ThemeProps<T>>>, themeKey: string): React.FunctionComponent<Omit<P, keyof ThemeProps<T>>> | React.ForwardRefExoticComponent<P>;
|
|
export default withTheme;
|