plugin-route-missing.tsx 538 B

1234567891011121314
  1. import { useTheme } from "../context/theme"
  2. export function PluginRouteMissing(props: { id: string; onHome: () => void }) {
  3. const { theme } = useTheme()
  4. return (
  5. <box width="100%" height="100%" alignItems="center" justifyContent="center" flexDirection="column" gap={1}>
  6. <text fg={theme.warning}>Unknown plugin route: {props.id}</text>
  7. <box onMouseUp={props.onHome} backgroundColor={theme.backgroundElement} paddingLeft={1} paddingRight={1}>
  8. <text fg={theme.text}>go home</text>
  9. </box>
  10. </box>
  11. )
  12. }