mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-11-01 08:05:23 +00:00
17 lines
492 B
TypeScript
17 lines
492 B
TypeScript
import type { StandaloneViewProps } from "@termix/plugin-sdk/frontend";
|
|
import { TmuxMonitor } from "./TmuxMonitor";
|
|
|
|
/** `?view=tmux_monitor` full-screen links. */
|
|
function TmuxMonitorApp({ hostId }: StandaloneViewProps) {
|
|
const parsed = hostId ? parseInt(hostId, 10) : NaN;
|
|
return (
|
|
<div className="h-screen w-screen overflow-hidden">
|
|
<TmuxMonitor
|
|
initialHostId={Number.isFinite(parsed) ? parsed : undefined}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default TmuxMonitorApp;
|