import { KibanaRequest } from 'kibana/server' ; import { SpacesServiceStart } from '../../spaces/server' ; export const getSpaceId = ( { spaces , request , } ) : string => spaces ?. getSpaceId ( request ) ?? 'default' ;