/* eslint-disable @next/next/no-html-link-for-pages */ import * as CSS from 'csstype' import Link from 'next/link' export default function BuilderHints ({ focus, badgeURL }) { const visible = !focus && !badgeURL const style: CSS.Properties = { opacity: visible ? 1 : 0, pointerEvents: visible ? 'auto' : 'none' } return (
GENERATOR (static or live badge) TEXT TEXT COLOR (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.Property.TextAlign } return (
{children}
) }