import { PropsWithChildren } from 'react' import { ScrollView, View } from '@tarojs/components' import { useSystemLayout } from '@/hooks/useSystemLayout' import './index.scss' interface PageShellProps { className?: string scroll?: boolean withTabBar?: boolean lowerThreshold?: number onScrollToLower?: () => void } export function PageShell({ children, className = '', scroll = true, withTabBar = true, lowerThreshold = 80, onScrollToLower }: PropsWithChildren) { const { safeBottom } = useSystemLayout() const content = ( {children} ) return ( {scroll ? ( {content} ) : ( content )} ) } export default PageShell