UNPKG

beam-cli

Version:

A beautifully simple CLI for running Lighthouse audits on a statically generated (SSG) website

10 lines (9 loc) 441 B
import React from 'react'; import { Box, Text, Spacer } from 'ink'; export const Header = ({ title = 'Results', helpVisible, }) => (React.createElement(Box, { height: 2 }, React.createElement(Text, { bold: true, underline: true, color: 'cyan' }, title), React.createElement(Spacer, null), React.createElement(Text, { dimColor: true }, "Press \u2018h\u2019 to ", helpVisible ? 'hide' : 'show', " help")));