import { CoreStart } from 'kibana/public' ; import { enableComparisonByDefault } from '../../../../../observability/public' ; export function getComparisonEnabled ( { core , urlComparisonEnabled , } ) { const isEnabledByDefault = core . uiSettings . get < boolean > ( enableComparisonByDefault ) ; return urlComparisonEnabled ?? isEnabledByDefault ; }