import React from 'react'; import ImageField from '../ImageField'; import ListActionsPopover from '../ListActionsPopover'; import { useAppSelector } from '../../stores/hooks'; import dataFormatter from '../../helpers/dataFormatter'; import { Pagination } from '../Pagination'; import { saveFile } from '../../helpers/fileSaver'; import LoadingSpinner from '../LoadingSpinner'; import Link from 'next/link'; import { hasPermission } from '../../helpers/userPermissions'; type Props = { archival_items: any[]; loading: boolean; onDelete: (id: string) => void; currentPage: number; numPages: number; onPageChange: (page: number) => void; }; const CardArchival_items = ({ archival_items, loading, onDelete, currentPage, numPages, onPageChange, }: Props) => { const asideScrollbarsStyle = useAppSelector( (state) => state.style.asideScrollbarsStyle, ); const bgColor = useAppSelector((state) => state.style.cardsColor); const darkMode = useAppSelector((state) => state.style.darkMode); const corners = useAppSelector((state) => state.style.corners); const focusRing = useAppSelector((state) => state.style.focusRingColor); const currentUser = useAppSelector((state) => state.auth.currentUser); const hasUpdatePermission = hasPermission( currentUser, 'UPDATE_ARCHIVAL_ITEMS', ); return (
{item.id}
No data to display