import { Embeddable , IContainer , ContainerInput } from '../../../../src/plugins/embeddable/public' ; import { TimeRangeInput } from './custom_time_range_action' ; export function doesInheritTimeRange ( embeddable ) { if ( ! embeddable . parent ) { return false ; } const parent = embeddable . parent as IContainer < { } , ContainerInput < TimeRangeInput > > ; if ( ! parent . getInput ( ) . panels [ embeddable . id ] ) { return false ; } return parent . getInput ( ) . panels [ embeddable . id ] . explicitInput . timeRange === undefined ; }