/**
 * SANDCODE.md external-@-includes acknowledgement dialog — stub.
 *
 * Original purpose: when a SANDCODE.md uses `@./other-file.md` to pull in
 * external content, the security gate shows this dialog so the user can
 * ack the included paths before the loader fetches them. The companion
 * loader code (utils/sandcodemd.ts) was reduced to a no-op stub in
 * cluster-f, so this dialog is unreachable in the current build — but the
 * import sites in interactiveHelpers.tsx and components/Settings/Config.tsx
 * still need it to type-check.
 *
 * Returns an empty fragment and immediately invokes onDone so any caller
 * that does manage to mount it doesn't deadlock.
 */
import * as React from 'react'

type Props = {
  onDone: () => void
  isStandaloneDialog?: boolean
  externalIncludes: string[]
}

export function SandcodeMdExternalIncludesDialog({ onDone }: Props): React.ReactNode {
  // Auto-resolve on mount — there's nothing to ack since the loader is a stub.
  React.useEffect(() => {
    onDone()
    // onDone identity changes are caller's concern; we only fire once.
    // eslint-disable-next-line react-hooks/exhaustive-deps
  }, [])
  return null
}
