{
if (e.target === e.currentTarget) onClose()
}}
>
{/* Modal content */}
{/* Header */}
{/* Breadcrumb */}
{currentPath && currentPath.split('/').map((part, idx, arr) => (
))}
{/* Content */}
{/* File list */}
{loading ? (
) : error ? (
{error}
) : (
{currentPath && (
)}
{files.map((entry) => (
))}
{files.length === 0 && (
Empty directory
)}
)}
{/* File viewer */}
{fileContent !== null && (
{fileLoading ? (
) : (
{fileContent}
)}
)}