import { IReminder } from '@models' ; import { action } from 'typesafe-actions' ; import * as types from './types' ; export const getRemindersByContactFetched = ( contactId ) => action ( types . GET_REMINDERS_BY_CONTACT_FETCHED , { contactId , } ) ; export const getRemindersByContactSuccess = ( contactId , reminders ) => action ( types . GET_REMINDERS_BY_CONTACT_SUCCESS , { reminders , contactId , } ) ; export const getRemindersByContactFailed = ( error ) => action ( types . GET_REMINDERS_BY_CONTACT_FAILED , { error , } ) ;