Stone.js API
    Preparing search index...

    Variable buildLayoutComponentConst

    buildLayoutComponent: (
        container: IContainer,
        children: ReactNode,
        layoutName?: unknown,
    ) => Promise<ReactNode | undefined>

    Get response layout in the current route for mutli pages application. Or get it from the blueprint configuration for single page application. Or get the default layout defined by the user. If not defined, return undefined.

    Type Declaration

      • (
            container: IContainer,
            children: ReactNode,
            layoutName?: unknown,
        ): Promise<ReactNode | undefined>
      • Parameters

        • container: IContainer

          Service Container.

        • children: ReactNode

          The children to render.

        • OptionallayoutName: unknown

          The layout name.

        Returns Promise<ReactNode | undefined>

        The resolved layout element.