import React from 'react' ; import { styled } from '@material-ui/styles' ; import { CSSProperties , WithStylesOptions } from '@material-ui/styles/withStyles' ; import { Theme } from '@material-ui/core/styles/createMuiTheme' ; export { Theme } ; export default function muiStyled < Props > ( Component ) { function styledCreator ( styles , options ? ) { return styled ( Component ) ( styles , options as any ) as React . ComponentType < Props > ; } styledCreator . attrs = ( attrs ) => muiStyled ( ( props ) => < Component { ... attrs } { ... props } / > ) ; return styledCreator ; }