rowboat/apps/cli/src/tui/index.tsx
2026-01-16 12:05:33 +05:30

8 lines
303 B
TypeScript

import React from "react";
import { render } from "ink";
import { RowboatTui } from "./ui.js";
export function runTui({ serverUrl }: { serverUrl?: string }) {
const baseUrl = serverUrl ?? process.env.ROWBOATX_SERVER_URL ?? "http://127.0.0.1:3000";
render(<RowboatTui serverUrl={baseUrl} />);
}