{Boolean(heading) && (
{typeof heading === 'string' ? (
) : (
{heading}
)}
)}
{/* _dangerouslyDisableScrollBoundaryContainer must be kept temporarily until specific surfaces migrate from Modal to OverlayPanel */}
{_dangerouslyDisableScrollBoundaryContainer ? (
' is not assignable to type 'LegacyRef | undefined'.
ref={contentRef}
flex="grow"
onScroll={updateShadows}
overflow="auto"
padding={padding === 'none' ? 0 : 6}
>
{children}
) : (
' is not assignable to type 'LegacyRef | undefined'.
ref={contentRef}
onScroll={updateShadows}
padding={padding === 'none' ? 0 : 6}
>
{children}
)}
{Boolean(footer) && (
{footer}
)}