import {templateOf, type SitePayload} from '@o2o/shared'; import {SiteProvider} from '@site/lib/site-context'; import {LayoutProvider} from '@site/lib/layout'; import {LAYOUTS} from '@site/layouts'; import {SectionList} from '@site/pages'; export function App({payload}: {payload: SitePayload}) { const layout = LAYOUTS[templateOf(payload.theme.templateId).layout]; const {Frame} = layout; return ( ); }