mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-28 03:48:23 +03:00
13 lines
383 B
TypeScript
13 lines
383 B
TypeScript
import { Action } from 'redux';
|
|
import { CreateVisit } from '../types';
|
|
|
|
export const CREATE_VISITS = 'shlink/visitCreation/CREATE_VISITS';
|
|
|
|
export interface CreateVisitsAction extends Action<typeof CREATE_VISITS> {
|
|
createdVisits: CreateVisit[];
|
|
}
|
|
|
|
export const createNewVisits = (createdVisits: CreateVisit[]): CreateVisitsAction => ({
|
|
type: CREATE_VISITS,
|
|
createdVisits,
|
|
});
|