'use client'
import { trpc } from '@/lib/trpc/client'
import { FileViewer } from '@/components/shared/file-viewer'
import { Skeleton } from '@/components/ui/skeleton'
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
import { AlertCircle, FileX } from 'lucide-react'
interface ProjectFilesSectionProps {
projectId: string
roundId: string
}
export function ProjectFilesSection({ projectId, roundId }: ProjectFilesSectionProps) {
const { data: files, isLoading, error } = trpc.file.listByProject.useQuery({
projectId,
roundId,
})
if (isLoading) {
return Failed to load files
{error.message || 'An error occurred while loading project files'}
No files available
This project has no files uploaded yet