mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-28 03:48:23 +03:00
13 lines
345 B
TypeScript
13 lines
345 B
TypeScript
|
import { Action } from 'redux';
|
||
|
import { CreateVisit } from '../types';
|
||
|
|
||
|
export const CREATE_VISIT = 'shlink/visitCreation/CREATE_VISIT';
|
||
|
|
||
|
type CreateVisitAction = Action<typeof CREATE_VISIT> & CreateVisit;
|
||
|
|
||
|
export const createNewVisit = ({ shortUrl, visit }: CreateVisit): CreateVisitAction => ({
|
||
|
type: CREATE_VISIT,
|
||
|
shortUrl,
|
||
|
visit,
|
||
|
});
|