/**
 * Access Logs Redux Slice
 */

import { createEntitySlice } from '../createEntitySlice';
import type { AccessLog } from '../../types/entities';

const { slice, actions, reducer } = createEntitySlice<AccessLog>({
  name: 'access_logs',
  endpoint: 'access_logs',
  singularName: 'Access Log',
});

export const {
  fetch,
  create,
  update,
  deleteItem,
  deleteItemsByIds,
  uploadCsv,
  setRefetch,
} = actions;
export const access_logsSlice = slice;

export default reducer;
