/**
 * Grove (managed deployment) onboarding dialog — stub.
 *
 * Companion to services/api/grove.ts (which always returns false for
 * isQualifiedForGrove). Sandcode has no Grove pipeline so this dialog is
 * unreachable; the export exists so interactiveHelpers.tsx's dynamic
 * import resolves at build time.
 */
import * as React from 'react'

type Props = {
  showIfAlreadyViewed?: boolean
  location?: string
  onDone: (decision: string) => void
}

export function GroveDialog({ onDone }: Props): React.ReactNode {
  React.useEffect(() => {
    // 'continue' is the inert decision sandcode uses; 'escape' would be
    // chosen by users who want to abort onboarding, which doesn't apply here.
    onDone('continue')
    // eslint-disable-next-line react-hooks/exhaustive-deps
  }, [])
  return null
}
