import * as CSS from 'csstype' export default function BuilderHints ({ focus, badgeURL }) { const visible = !focus && !badgeURL const style: CSS.Properties = { opacity: visible ? 1 : 0, pointerEvents: visible ? 'auto' : 'none' } return (
SERVICE_NAME (static badge / live badge)
TEXT TEXT  RGB / COLOR_NAME (optional) OPTIONS (icon, label, etc.)
) } const Hint = ({ left, width, height, children, align = 'left' }) => { const wrapperPos: CSS.Properties = { left: `calc(50% + ${left}px)`, height: `${height * 54}px`, width: `${width}px`, textAlign: align as CSS.TextAlignProperty } return (
{children}
) }