'use client' import React from 'react' import { Skeleton } from '../skeleton' interface FileManagerSkeletonProps { rows?: number showSearch?: boolean showActions?: boolean } export function FileManagerSkeleton({ rows = 8, showSearch = true, showActions = true }: FileManagerSkeletonProps) { const rowPlaceholders = Array.from({ length: rows }) return (
{/* Breadcrumb and Action Bar */}
{/* Breadcrumb skeleton */}
{/* Action buttons skeleton */} {showActions && (
)}
{/* Search bar skeleton */} {showSearch && ( )} {/* Table skeleton */}
{/* Table header */}
{/* Checkbox */}
{/* Column headers */}
NAME
SIZE
EDITED
{/* Empty space for actions */}
{/* Table rows */}
{rowPlaceholders.map((_, idx) => (
{/* Checkbox */}
{/* File icon and name */}
{/* Size */}
{/* Modified date */}
{/* Action buttons */}
))}
) }