|
1 | 1 | import '../styles/routes/desktop.css'; |
2 | 2 |
|
3 | | -import { Wifi, Volume2, Bell, Search } from 'lucide-react'; |
| 3 | +import { Search } from 'lucide-react'; |
4 | 4 | import {createRef, useRef, useState, useMemo, useEffect} from "react"; |
5 | 5 |
|
6 | 6 | import { APP_REGISTRY, INITIAL_Z, getNextZ } from "../data/Apps.js"; |
7 | 7 | import AppWindow from "../core/WindowManager.jsx"; |
8 | | -import { useDateTime } from "../components/DateTime.jsx"; |
9 | 8 |
|
10 | 9 | import Draggable from 'react-draggable'; |
11 | 10 | import { motion, AnimatePresence } from "framer-motion"; |
12 | 11 |
|
| 12 | +import SystemTray from "../components/SystemTray.jsx"; |
| 13 | + |
13 | 14 | function Desktop() { |
14 | 15 | const [isStartMenuActive, setIsStartMenuActive] = useState(false); |
15 | 16 |
|
@@ -187,8 +188,6 @@ function Desktop() { |
187 | 188 | })); |
188 | 189 | } |
189 | 190 |
|
190 | | - const { timeString, dateString } = useDateTime(); |
191 | | - |
192 | 191 | return ( |
193 | 192 | <div className="desktop" onMouseDown={() => { |
194 | 193 | setSelectedIcon(null); |
@@ -306,17 +305,9 @@ function Desktop() { |
306 | 305 | ))} |
307 | 306 | </AnimatePresence> |
308 | 307 | </div> |
309 | | - <div className="tray"> |
310 | | - <div className="wifisound tray-container"> |
311 | | - <div className="tray-item"><Wifi size={18} /></div> |
312 | | - <div className="tray-item"><Volume2 size={18} /></div> |
313 | | - </div> |
314 | | - <div className="datetime tray-container"> |
315 | | - <p>{timeString}</p> |
316 | | - <p>{dateString}</p> |
317 | | - </div> |
318 | | - <Bell className="notif tray-item tray-container" size={18} /> |
319 | | - </div> |
| 308 | + |
| 309 | + < SystemTray /> |
| 310 | + |
320 | 311 | </div> |
321 | 312 | </div> |
322 | 313 | ); |
|
0 commit comments