mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-26 02:48:22 +03:00
12 lines
396 B
TypeScript
12 lines
396 B
TypeScript
import type { PayloadAction } from '@reduxjs/toolkit';
|
|
import { createAction } from '@reduxjs/toolkit';
|
|
import type { CreateVisit } from '../types';
|
|
|
|
export type CreateVisitsAction = PayloadAction<{
|
|
createdVisits: CreateVisit[];
|
|
}>;
|
|
|
|
export const createNewVisits = createAction(
|
|
'shlink/visitCreation/createNewVisits',
|
|
(createdVisits: CreateVisit[]) => ({ payload: { createdVisits } }),
|
|
);
|