import { QueryOrigin , QueryOriginInit , ResultOrigin } from '../types/origin' ; /**
 * Creates a  QueryOrigin or a  ResultOrigin string given a  QueryFeature and
 * a  FeatureLocation .
 * If it can't be created, it returns `null`.
 *
 *  param originInit - An object containing the needed properties to create a  QueryOrigin or
 * a  ResultOrigin .
 *
 *  returns internal export function createOrigin ( { feature , location } ) { if ( feature ) { return `${ feature }:${ location ?? 'none' }` ; } return null ; }