// (C) 2024-2025 GoodData Corporation
import { createSelector } from "@reduxjs/toolkit";
const selectSelf = createSelector((state) => state, (state) => state.notificationChannels);
/**
 * Returns organization notification channels.
 *
 * @alpha
 */
export const selectNotificationChannels = createSelector(selectSelf, (state) => {
    return state.notificationChannels;
});
/**
 * Returns notification channels suitable for scheduled exports.
 *
 * @alpha
 */
export const selectNotificationChannelsWithoutInPlatform = createSelector(selectSelf, (state) => {
    return state.notificationChannels.filter((channel) => channel.destinationType !== "inPlatform");
});
/**
 * Returns notification channels suitable for scheduled exports.
 *
 * @alpha
 */
export const selectNotificationChannelsCountWithoutInPlatform = createSelector(selectNotificationChannelsWithoutInPlatform, (notificationChannels) => {
    return notificationChannels.length;
});
/**
 * Returns organization notification channels count.
 *
 * @alpha
 */
export const selectNotificationChannelsCount = createSelector(selectSelf, (state) => {
    return state.notificationChannelsCount;
});
//# sourceMappingURL=notificationChannelsSelectors.js.map