23 lines
826 B
TypeScript
23 lines
826 B
TypeScript
import { Box } from '@mui/material'
|
|
import { Board, useBoard, type BoardPanel } from './PanelBoard.tsx'
|
|
import UpdatesNotice from './UpdatesNotice.tsx'
|
|
|
|
/** The localStorage key of the tab's layout. */
|
|
const LAYOUT_KEY = 'linux-manager-ui.system-layout'
|
|
|
|
/**
|
|
* The server's operating system: the System updates panel lists the packages apt-get upgrade would upgrade, with Check
|
|
* update and Upgrade (UpdatesNotice with system). The panel is on a PanelBoard whose layout is kept in the browser.
|
|
*/
|
|
export default function SystemPanel() {
|
|
const board = useBoard(LAYOUT_KEY)
|
|
const panels: BoardPanel[] = [
|
|
{ id: 'updates', title: 'System updates', wide: true, fixed: true, content: <UpdatesNotice system /> },
|
|
]
|
|
return (
|
|
<Box component="section">
|
|
<Board board={board} panels={panels} />
|
|
</Box>
|
|
)
|
|
}
|