/**
 * Asset Variants Redux Slice
 */

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

const { slice, actions, reducer } = createEntitySlice<AssetVariant>({
  name: 'asset_variants',
  endpoint: 'asset_variants',
  singularName: 'Asset Variant',
});

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

export default reducer;
