/** * External dependencies */ import type { Maybe, WebhookSettings, Uuid } from '@nelio-content/types'; /** * Internal dependencies */ import type { State } from '../../types'; export function getWebhookSettings( state: State ): State[ 'attributes' ][ 'webhookSettingsByProfile' ] { return state.attributes.webhookSettingsByProfile; } export function getWebhookSettingsInProfile( state: State, profileId: Uuid ): Maybe< WebhookSettings > { return state.attributes.webhookSettingsByProfile[ profileId ]; }