import React from "react"; import SampleFile from "./simple-file"; import Close from "@components/icons/close"; import CloseAll from "@components/icons/close-all"; interface IOpenFilePanel { openedFiles: any; filetree: any; onPathChange: (key: string) => void; currentPath?: string; onCloseFile: (key: string) => void; } const OpenFilePanel: React.FC = ({ openedFiles, filetree, onPathChange, currentPath, onCloseFile, }) => { // console.log("openedFiles", openedFiles, "filetree", filetree); return (
打开的编辑器 onCloseFile("")} style={{ cursor: "pointer", width: "16px", }} />
{openedFiles?.length > 0 ? ( openedFiles.map((file: any) => ( )) ) : (
编辑器中暂无打开文件
)}
); }; export default OpenFilePanel;