/* global React, Icons, PlugBot, Wordmark */ const { useState } = React; /* ========================================================================= Shared atomic components ========================================================================= */ const Badge = ({ kind, children, dot = false }) => ( {dot && } {children} ); const Pill = ({ on, onClick, children }) => ( ); const Btn = ({ kind = 'ghost', size, onClick, children, href, icon, iconRight }) => { const cls = `btn btn-${kind} ${size === 'sm' ? 'btn-sm' : ''}`; const inner = ( <> {icon} {children} {iconRight} > ); if (href) return {inner}; return ; }; const Meter = ({ value, max = 100, tone = '' }) => (