AiRead
Öffnet die beleggebundene AI-Leseauswahl zum Markdown-Zwilling des aktuellen Cases.
src/components/islands/AiRead.tsxSource contract in German. The marked authoring notes below retain their original language.
Usage contract
Use through the documented parent
Entry point: src/components/case/CasePage.astro
- md/url/prompt müssen denselben Case beschreiben; keine geheimen Inhalte an fremde Dienste übertragen.
- Die Insel bedient den bestehenden data-case-ai-Trigger und A-Shortcut; Eingabefelder ausnehmen, Fokus zurückgeben.
Examples
No dedicated demo is assigned. Use the documented entry point and consumers below; this is not evidence of a missing runtime component.
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
type Labels = {menu: string; label: string; copy: string; copied: string; view: string; chatgpt: string; claude: string; perplexity: string; close: string};AiRead({md, url, prompt, l}: {md: string; url: string; prompt: string; l: Labels})Source usage
Website reference
This is static source evidence. A reachable module may contain conditional or unused branches. External consumers and staged static pages are outside this scan. No status authorizes deletion.
Website
- src/pages/en/work/[id].astro
- src/components/case/CasePage.astro
- src/components/islands/AiRead.tsx
Preview
- src/pages/vorschlag/cases/[id].astro
- src/components/case/CasePage.astro
- src/components/islands/AiRead.tsx
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.
Dependencies
@/components/LeetReady·src/components/LeetReady.tsxreact@/components/ui/zicon·src/components/ui/zicon.tsx@/components/ui/dialog·src/components/ui/dialog.tsx@/scripts/case-navigation·src/scripts/case-navigation.ts