UNPKG

@roots/bud-dashboard

Version:

bud.js core module

10 lines (9 loc) 1.99 kB
import { jsx as _jsx, jsxs as _jsxs } from "@roots/bud-support/jsx-runtime"; import { Box, Text } from '@roots/bud-support/ink'; const Footer = ({ display }) => { if (!display) { return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { children: ` ` }), _jsxs(Text, { children: [_jsxs(Text, { dimColor: true, children: [` `, "Press"] }), " h", ` `, _jsx(Text, { dimColor: true, children: "to show help" })] })] })); } return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { children: ` ` }), _jsxs(Text, { color: "blue", children: [` `, "Shortcuts", ` `] }), _jsx(Text, { children: ` ` }), _jsxs(Text, { children: [` `, _jsx(Text, { dimColor: true, children: "Press" }), " b ", _jsx(Text, { dimColor: true, children: "to open browser" })] }), _jsxs(Text, { children: [` `, _jsx(Text, { dimColor: true, children: "Press" }), " c", ` `, _jsx(Text, { dimColor: true, children: "to toggle compact display" })] }), _jsxs(Text, { children: [` `, _jsx(Text, { dimColor: true, children: "Press" }), " d", ` `, _jsx(Text, { dimColor: true, children: "to toggle detailed debug information (may be system intensive)" })] }), _jsxs(Text, { children: [` `, _jsx(Text, { dimColor: true, children: "Press" }), " e", ` `, _jsx(Text, { dimColor: true, children: "to toggle entrypoints display" })] }), _jsxs(Text, { children: [` `, _jsx(Text, { dimColor: true, children: "Press" }), " h ", _jsx(Text, { dimColor: true, children: "to hide help" })] }), _jsxs(Text, { children: [` `, _jsx(Text, { dimColor: true, children: "Press" }), " q ", _jsx(Text, { dimColor: true, children: "to quit" })] }), _jsxs(Text, { children: [` `, _jsx(Text, { dimColor: true, children: "Press" }), " r", ` `, _jsx(Text, { dimColor: true, children: "to clear/reload console" })] }), _jsxs(Text, { children: [` `, _jsx(Text, { dimColor: true, children: "Press" }), " s", ` `, _jsx(Text, { dimColor: true, children: "to toggle server info display" })] })] })); }; export default Footer;