# give/4.18.0/src/Views/Components/AdminDetailsPage/store/selectors.ts

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 10 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/src/Views/Components/AdminDetailsPage/store/selectors.ts
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/src/Views/Components/AdminDetailsPage/store/selectors.ts
- Modified: 2025-06-18T15:01:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.18.0/code/src/Views/Components/AdminDetailsPage/store/selectors.ts#L10-L20`.

```typescript
import type {Notification} from '../types';

export function getNotifications(state: []) {
    return state;
}

export function getNotificationsByType(state: [], type: 'snackbar' | 'notice') {
    return state.filter((notification: Notification) => notification.notificationType === type);
}

```
