// Invisible spam trap: real visitors never see or fill this field, so any
// submission with it filled in is almost certainly a bot. Server actions
// check `formData.get(HONEYPOT_FIELD_NAME)` and silently no-op if it's set.
export const HONEYPOT_FIELD_NAME = 'website_url'

export default function HoneypotField() {
  return (
    <div
      aria-hidden="true"
      style={{ position: 'absolute', left: '-9999px', top: 0, width: 0, height: 0, overflow: 'hidden' }}
    >
      <label htmlFor={HONEYPOT_FIELD_NAME}>Website</label>
      <input type="text" id={HONEYPOT_FIELD_NAME} name={HONEYPOT_FIELD_NAME} tabIndex={-1} autoComplete="off" />
    </div>
  )
}
