/**
 * Console OAuth flow component — stub.
 *
 * The upstream component handled the browser-redirect OAuth dance against
 * the hosted console. Sandcode's console-OAuth pipeline is removed; the
 * Onboarding screen's `oauth` step is unreachable in this build but the
 * import still needs to resolve.
 *
 * Auto-completes via onDone on mount so any caller that does mount it
 * doesn't deadlock waiting for user interaction that can't happen.
 */
import * as React from 'react'

type Props = {
  onDone?: () => void
  onSuccess?: () => void
  onError?: (error: Error) => void
}

export function ConsoleOAuthFlow({ onDone }: Props): React.ReactNode {
  React.useEffect(() => {
    onDone?.()
    // eslint-disable-next-line react-hooks/exhaustive-deps
  }, [])
  return null
}
