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 (
)
}
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 (
)
}