/** * External dependencies */ import type { AuthorId, EditorialTask, Maybe, Uuid, } from '@nelio-content/types'; /** * Internal dependencies */ import type { State } from '../types'; export function getId( state: State ): Maybe< Uuid > { return state.attributes.id; } export function getTask( state: State ): string { return state.attributes.task; } export function getAssigneeId( state: State ): Maybe< AuthorId > { return state.attributes.assigneeId; } export function getDateType( state: State ): EditorialTask[ 'dateType' ] { return state.attributes.dateType; } export function getDateValue( state: State ): EditorialTask[ 'dateValue' ] { return state.attributes.dateValue; } export function getColor( state: State ): EditorialTask[ 'color' ] { return state.attributes.color; } export function getAttributes( state: State ): State[ 'attributes' ] { return state.attributes; }