Files
ncd-fe/packages/pl-fe/src/actions/push-subscriptions.ts
mkljczk 60e51f869a pl-fe: remove unused exports
Signed-off-by: mkljczk <git@mkljczk.pl>
2024-12-05 11:54:20 +01:00

13 lines
421 B
TypeScript

import { getClient } from '../api';
import type { CreatePushNotificationsSubscriptionParams } from 'pl-api';
import type { AppDispatch, RootState } from 'pl-fe/store';
const createPushSubscription = (params: CreatePushNotificationsSubscriptionParams) =>
(dispatch: AppDispatch, getState: () => RootState) =>
getClient(getState).pushNotifications.createSubscription(params);
export {
createPushSubscription,
};