- { isMobile && (
-
-
- { headerTitle }
-
-
-
- ) }
-
- { children }
-
-
- ) }
-
-
- );
- /* eslint-enable jsx-a11y/no-static-element-interactions */
-
- // Apply focus to element as long as focusOnMount is truthy; false is
- // the only "disabled" value.
- if ( focusOnMount ) {
- content =
{ content };
- }
-
- return (
-
- { ( { getSlot } ) => {
- // In case there is no slot context in which to render,
- // default to an in-place rendering.
- if ( getSlot && getSlot( SLOT_NAME ) ) {
- content = { content };
- }
-
- return (
-
- { content }
- { isMobile && expandOnMobile && }
-
- );
- } }
-
- );
+ { children }
+
+