From 48755f18b03fcce8171d4307763c78e51775b692 Mon Sep 17 00:00:00 2001 From: Frontend Developer Date: Tue, 10 Mar 2026 08:48:54 +0000 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF:=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=A0=8F=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/renderer/components/Sidebar.jsx | 54 ++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 frontend/src/renderer/components/Sidebar.jsx diff --git a/frontend/src/renderer/components/Sidebar.jsx b/frontend/src/renderer/components/Sidebar.jsx new file mode 100644 index 0000000..7ae6937 --- /dev/null +++ b/frontend/src/renderer/components/Sidebar.jsx @@ -0,0 +1,54 @@ +import React from 'react'; +import { Menu } from 'antd'; +import { + FolderOutlined, + ClockCircleOutlined, + ShareAltOutlined, + DeleteOutlined, + CloudOutlined +} from '@ant-design/icons'; + +function Sidebar({ collapsed, onCollapse }) { + const menuItems = [ + { + key: 'files', + icon: , + label: '我的文件', + }, + { + key: 'recent', + icon: , + label: '最近访问', + }, + { + key: 'shared', + icon: , + label: '共享文件', + }, + { + key: 'trash', + icon: , + label: '回收站', + }, + { + type: 'divider', + }, + { + key: 'storage', + icon: , + label: '存储空间: 2.1GB/10GB', + disabled: true, + }, + ]; + + return ( + + ); +} + +export default Sidebar;