import * as React from 'react'; import withMobileDialog, { WithMobileDialog } from 'share-we-go-ui/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', }; // Missing fullscreen, width ; // $ExpectError const ResponsiveComponent = withMobileDialog()(Component); ;