mui2-file-dropzone
Version:
A Material-UI file-upload dropzone. Written in TypeScript.
11 lines • 464 B
JavaScript
import { useTheme } from "@mui/material/styles";
import React, { forwardRef } from "react";
function withTheme(Component) {
return forwardRef(function ComponentWithTheme(props, ref) {
const theme = useTheme();
const combinedProps = Object.assign(Object.assign({}, props), { theme });
return React.createElement(Component, Object.assign({ ref: ref }, combinedProps));
});
}
export { withTheme };
//# sourceMappingURL=withTheme.js.map