import React from 'react'; import type { ScreenProps } from '../../../../types/layout'; import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope'; import { resolvePageMaxWidth } from '../../utils/resolvePageMaxWidth'; import { ScrollView } from './ScrollView'; import { View } from './View'; function ScreenInner({ themeId: _themeId, mode: _mode, interactionPolicy: _interactionPolicy, children, footer, scroll = true, width = 'default', testID, }: ScreenProps) { const content = ( {children} {footer} ); if (!scroll) { return ( {content} ); } return ( {content} ); } /*** Screen content boundary with independent width policy and scroll ownership. */ export const Screen = withZoraThemeScope(ScreenInner);