UNPKG

386 BJavaScriptView Raw
1import _extends from "@babel/runtime/helpers/esm/extends";
2import { styled as styledWithoutDefault } from '@material-ui/styles';
3import defaultTheme from './defaultTheme';
4
5const styled = Component => {
6 const componentCreator = styledWithoutDefault(Component);
7 return (style, options) => componentCreator(style, _extends({
8 defaultTheme
9 }, options));
10};
11
12export default styled;
\No newline at end of file