beam-cli
Version:
A beautifully simple CLI for running Lighthouse audits on a statically generated (SSG) website
11 lines (10 loc) • 536 B
JavaScript
import React from 'react';
import { Box, Text, Spacer } from 'ink';
export const ExplorerHeader = ({ tabs, selectedTab, sortDescription }) => (React.createElement(Box, { flexDirection: 'row', marginRight: 1 },
tabs.map(tab => {
const selected = tab === selectedTab;
return (React.createElement(Box, { key: tab },
React.createElement(Text, { backgroundColor: selected ? 'cyan' : '' }, ` ${tab} `)));
}),
React.createElement(Spacer, null),
React.createElement(Text, null, sortDescription)));