import React from 'react'; import CardBox from '../CardBox'; import ImageField from '../ImageField'; import dataFormatter from '../../helpers/dataFormatter'; import { saveFile } from '../../helpers/fileSaver'; import ListActionsPopover from '../ListActionsPopover'; import { useAppSelector } from '../../stores/hooks'; import { Pagination } from '../Pagination'; import LoadingSpinner from '../LoadingSpinner'; import Link from 'next/link'; import { hasPermission } from '../../helpers/userPermissions'; import type { PublishEvent } from '../../types/entities'; type Props = { publish_events: PublishEvent[]; loading: boolean; onDelete: (id: string) => void; currentPage: number; numPages: number; onPageChange: (page: number) => void; }; const ListPublish_events = ({ publish_events, loading, onDelete, currentPage, numPages, onPageChange, }: Props) => { const currentUser = useAppSelector((state) => state.auth.currentUser); const hasUpdatePermission = hasPermission( currentUser, 'UPDATE_PUBLISH_EVENTS', ); const corners = useAppSelector((state) => state.style.corners); const bgColor = useAppSelector((state) => state.style.cardsColor); return ( <>
Project
{dataFormatter.projectsOneListFormatter(item.project)}
User
{dataFormatter.usersOneListFormatter(item.user)}
Fromenvironment
{item.from_environment}
Toenvironment
{item.to_environment}
Startedat
{dataFormatter.dateTimeFormatter(item.started_at)}
Finishedat
{dataFormatter.dateTimeFormatter(item.finished_at)}
Status
{item.status}
Title
{item.title}
Description
{item.description}
Errormessage
{item.error_message}
Pagescopied
{item.pages_copied}
Transitionscopied
{item.transitions_copied}
Audioscopied
{item.audios_copied}
No data to display