/**
 * Page Links Redux Slice
 */

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

const { slice, actions, reducer } = createEntitySlice<PageLink>({
  name: 'page_links',
  endpoint: 'page_links',
  singularName: 'Page Link',
});

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

export default reducer;
