13 lines
304 B
TypeScript
13 lines
304 B
TypeScript
import { Theme } from './createMuiTheme';
|
|
import { ConsistentWith } from '..';
|
|
|
|
export interface WithTheme {
|
|
theme: Theme;
|
|
}
|
|
|
|
declare const withTheme: () => <P extends ConsistentWith<WithTheme>>(
|
|
component: React.ComponentType<P & WithTheme>,
|
|
) => React.ComponentClass<P>;
|
|
|
|
export default withTheme;
|