/** * External dependencies */ import type { Uuid } from '@nelio-content/types'; /** * Internal dependencies */ import type { State } from '../types'; export function getEditorialCommentInputValue( state: State ): string { return state.comments.input; } export function isDeletingEditorialComment( state: State, commentId: Uuid ): boolean { return state.comments.deleting.includes( commentId ); } export function isSynchingEditorialComment( state: State, commentId: Uuid ): boolean { return state.comments.synching.includes( commentId ); } export function isRetrievingEditorialComments( state: State ): boolean { return state.comments.isRetrievingComments; }