import { ContainerRuntimeFactoryWithDefaultDataStore } from "@fluidframework/aqueduct" ; import { IRequest } from "@fluidframework/core-interfaces" ; import { IContainerRuntimeBase } from "@fluidframework/runtime-definitions" ; import { Spaces } from "./fluid-object/" ; /**
 * This does setup for the Fluid Container.
 *
 * There are two important things here:
 * 1. Default FluidObject name
 * 2. Map of string to factory for all FluidObjects
 *
 * In this example, we are only registering a single FluidObject, but more complex examples will register multiple
 * FluidObjects.
 */ const innerRequestHandler = async ( request , runtime ) => runtime . IFluidHandleContext . resolveHandle ( request ) ; export const SpacesContainer = new ContainerRuntimeFactoryWithDefaultDataStore ( Spaces . getFactory ( ) , [ [ Spaces . ComponentName , Promise . resolve ( Spaces . getFactory ( ) ) ] ] , undefined , [ innerRequestHandler ] ) ;