/**
 * A Store List overlay is only usable while its target is present and visible.
 * Map-only and fullscreen modes deliberately fall back to the in-map panel.
 */
export const shouldOverlayDirectionsOnResults = ( {
	placement,
	hasResultsTarget,
	mapOnly = false,
	isFullscreen = false,
} ) => placement === 'results' && hasResultsTarget && ! mapOnly && ! isFullscreen;
