import React from 'react'; import { Tree } from '@geist-ui/core'; import { File, Folder } from '@geist-ui/icons'; const FileTree = ({ files = [], onFileSelect = () => {}, selectedFile = null }) => { if (files.length === 0) { return
No files to display
; } const handleSelect = (filePath) => { onFileSelect(filePath); }; const renderLabel = (node) => { const path = getFilePath(node); return ( {node.name} ); }; const renderIcon = ({ type }) => type === 'directory' ? : ; return ( ); }; export default FileTree;