Skip to the content

Capsid menu

app/components/ask-panel.tsx

14 lines and 1 functions in DrDustinEdwards/dustinedwards-info, at commit 1590ba4 on 2026-10-24. This file on GitHub.

Functions

The functions of ask-panel.tsx
FunctionLinesComplexityCoveredCRAPMutation
AskMount5 to 151No data: no coverage report in this mapNo data: no coverage report in this mapNo data: no mutants in this code

Imports

It imports app/components/enhance.tsx. Imported by app/routes/search.tsx.

Source

import { Enhance } from "~/components/enhance";

// The button ships hidden and the bundle unhides it, so a reader without script
// never sees an inert control that looks live.
export function AskMount({ question }: { question: string }) {
  return (
    <div className="ask-mount" data-ask-mount="" data-ask-question={question}>
      <button type="button" className="ask-trigger" data-ask-trigger="" hidden>
        Ask AI about this
      </button>
      <div className="ask-container" data-ask-container="" hidden />
      <Enhance module="ask" />
    </div>
  );
}