Download packages/tui/src/component/plugin-route-missing.tsx from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 538 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/tui/src/component/plugin-route-missing.tsx
- Command line
-
hf download hf://SaylorTwift/opencode/packages/tui/src/component/plugin-route-missing.tsx
-
curl -L -o plugin-route-missing.tsx https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/tui/src/component/plugin-route-missing.tsx
538 Bytes
| 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> | |
| ) | |
| } | |