/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/tui/src/component/plugin-route-missing.tsx
14 строк
538 B
Dax
refactor(server): canonicalize service API (#31049)
07 июн 2026, 06:27
Не верифицирован
07 июн 2026, 06:27
fe0c4f8
Код
Авторство
О чём код?
import { useTheme } from "../context/theme" export function PluginRouteMissing(props: { id: string; onHome: () => void }) { const { theme } = useTheme() return ( <box width="100%" height="100%" alignItems="center" justifyContent="center" flexDirection="column" gap={1}> <text fg={theme.warning}>Unknown plugin route: {props.id}</text> <box onMouseUp={props.onHome} backgroundColor={theme.backgroundElement} paddingLeft={1} paddingRight={1}> <text fg={theme.text}>go home</text> </box> </box> ) }