import type { KibanaRequest } from 'src/core/server' ; import type { SpacesServiceStart } from '../spaces_service/spaces_service' ; export function createSpacesTutorialContextFactory ( getSpacesService ) { return function spacesTutorialContextFactory ( request ) { const spacesService = getSpacesService ( ) ; return { spaceId : spacesService . getSpaceId ( request ) , isInDefaultSpace : spacesService . isInDefaultSpace ( request ) , } ; } ; }