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
| Function | Lines | Complexity | Covered | CRAP | Mutation |
|---|---|---|---|---|---|
| AskMount | 5 to 15 | 1 | No data: no coverage report in this map | No data: no coverage report in this map | No 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>
);
}