mirror of
https://github.com/henrygd/beszel.git
synced 2026-03-22 05:36:15 +01:00
29 lines
640 B
Go
29 lines
640 B
Go
import { useLingui } from "@lingui/react/macro"
|
|
import { memo, Suspense, useEffect, useMemo } from "react"
|
|
import SystemsTable from "@/components/systems-table/systems-table"
|
|
import { ActiveAlerts } from "@/components/active-alerts"
|
|
import { FooterRepoLink } from "@/components/footer-repo-link"
|
|
|
|
export default memo(() => {
|
|
const { t } = useLingui()
|
|
|
|
useEffect(() => {
|
|
document.title = `${t`All Systems`} / Beszel`
|
|
}, [t])
|
|
|
|
return useMemo(
|
|
() => (
|
|
<>
|
|
<div className="flex flex-col gap-4">
|
|
<ActiveAlerts />
|
|
<Suspense>
|
|
<SystemsTable />
|
|
</Suspense>
|
|
</div>
|
|
<FooterRepoLink />
|
|
</>
|
|
),
|
|
[]
|
|
)
|
|
})
|