UNPKG

mui-extended

Version:

Extended UI Components built on Material UI

10 lines (9 loc) 369 B
import { __assign } from "tslib"; import { jsx as _jsx } from "react/jsx-runtime"; import { useMobile } from "./utils/useMobile"; export var withResponsiveDialog = function (DialogComponent) { return function ResponsiveComponent(props) { var isMobile = useMobile(); return _jsx(DialogComponent, __assign({ fullScreen: isMobile }, props)); }; };