import * as React from 'react'; import withMobileDialog, { WithMobileDialog } from '@material-ui/core/withMobileDialog'; interface SimpleProps extends WithMobileDialog { note: string; title: string; } function Component(props: SimpleProps) { const { fullScreen, note, title } = props; return (
{title} is fullscreen? {fullScreen}
{note}
); } Component.defaultProps = { note: 'nothing special', }; // @ts-expect-error Missing fullscreen, width ; const ResponsiveComponent = withMobileDialog()(Component); ;