/**
 * Permissions List Page
 */

import { createListPage } from '../../factories/createListPage';
import TablePermissions from '../../components/Permissions/TablePermissions';
import {
  uploadCsv,
  setRefetch,
} from '../../stores/permissions/permissionsSlice';

const filters = [{ label: 'Name', title: 'name' }];

export default createListPage({
  entityName: 'permissions',
  entityTitle: 'Permissions',
  TableComponent: TablePermissions,
  filters,
  readPermission: 'READ_PERMISSIONS',
  createPermission: 'CREATE_PERMISSIONS',
  uploadCsvAction: uploadCsv,
  setRefetchAction: setRefetch,
});
