/** * External dependencies */ import { EMPTY_ARRAY } from '@nelio-content/constants'; import type { EditorialReference, PostId } from '@nelio-content/types'; /** * Internal dependencies */ import type { State } from '../../config'; export function getSuggestedReferences( state: State, postId?: PostId ): ReadonlyArray< EditorialReference > { return postId ? state.entities.references[ postId ] ?? EMPTY_ARRAY : EMPTY_ARRAY; }