interface AppProps { onTap?: () => void; pageId?: string; pageKey?: string; pageKeys?: string[]; pageRef?: unknown; refMode?: 'direct' | 'spread'; withPage?: boolean; } export function App({ onTap, pageId = 'screen', pageKey = 'page', pageKeys, pageRef, refMode = 'spread', withPage = true, }: AppProps) { const child = ( child ); if (!withPage) { return ( without page ); } if (pageKeys) { return ( <> {pageKeys.map(pageKey => ( ))} ); } const pageProps = { id: pageId, className: 'screen', bindtap: onTap, ref: pageRef, }; if (refMode === 'direct') { return ( {child} ); } return ( {child} ); }