mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 02:36:17 +01:00
13 lines
276 B
TypeScript
13 lines
276 B
TypeScript
import { useEffect } from 'preact/hooks'
|
|
import { useRoute } from 'wouter-preact'
|
|
|
|
export function ServerDetail() {
|
|
const [_, params] = useRoute('/server/:name')
|
|
|
|
useEffect(() => {
|
|
document.title = `Server: ${params!.name}`
|
|
}, [])
|
|
|
|
return <>Info for {params!.name}</>
|
|
}
|