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 { TourPage } from '../../types/entities'; type Props = { tour_pages: TourPage[]; loading: boolean; onDelete: (id: string) => void; currentPage: number; numPages: number; onPageChange: (page: number) => void; }; const ListTour_pages = ({ tour_pages, loading, onDelete, currentPage, numPages, onPageChange, }: Props) => { const currentUser = useAppSelector((state) => state.auth.currentUser); const hasUpdatePermission = hasPermission(currentUser, 'UPDATE_TOUR_PAGES'); const corners = useAppSelector((state) => state.style.corners); const bgColor = useAppSelector((state) => state.style.cardsColor); return ( <>
Project
{dataFormatter.projectsOneListFormatter(item.project)}
Environment
{item.environment}
Sourcekey
{item.source_key}
Name
{item.name}
Slug
{item.slug}
Sortorder
{item.sort_order}
BackgroundimageURL
{item.background_image_url}
BackgroundvideoURL
{item.background_video_url}
BackgroundaudioURL
{item.background_audio_url}
Backgroundloop
{dataFormatter.booleanFormatter(item.background_loop)}
Requiresauth
{dataFormatter.booleanFormatter(item.requires_auth)}
UIschemaJSON
{item.ui_schema_json}
No data to display