mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
chore: kapa-ai temporary disabled
This commit is contained in:
parent
95bd9288bf
commit
dd880c5c48
@ -33,7 +33,7 @@ export default function DocsLayout({children}: DocsLayoutProps) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ScriptProviders />
|
<ScriptProviders isKapaEnabled={false} />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,7 +40,7 @@ export default function DocsLayout({children}: DocsLayoutProps) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ScriptProviders />
|
<ScriptProviders isKapaEnabled={false} />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,16 +2,18 @@ import * as React from "react";
|
|||||||
import Script from "next/script";
|
import Script from "next/script";
|
||||||
|
|
||||||
|
|
||||||
export function ScriptProviders() {
|
export function ScriptProviders({isKapaEnabled}: {isKapaEnabled?: boolean}) {
|
||||||
|
if (!isKapaEnabled) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Script
|
<Script
|
||||||
defer
|
defer
|
||||||
data-modal-disclaimer="This is a custom LLM for NextUI with access to all developer docs (heroui.com/docs) and GitHub Issues and PRs (github.com/frontio-ai/heroui)."
|
data-modal-disclaimer="This is a custom LLM for HeroUI with access to all developer docs (heroui.com/docs) and GitHub Issues and PRs (github.com/frontio-ai/heroui)."
|
||||||
data-modal-example-questions="How do I install for Next.js?,How do I customize primary color?"
|
data-modal-example-questions="How do I install for Next.js?,How do I customize primary color?"
|
||||||
data-project-color="#000000"
|
data-project-color="#000000"
|
||||||
data-project-logo="https://avatars.githubusercontent.com/u/86160567?s=280&v=4"
|
data-project-logo="https://avatars.githubusercontent.com/u/86160567?s=280&v=4"
|
||||||
data-project-name="NextUI"
|
data-project-name="HeroUI"
|
||||||
data-website-id="e733a73f-980e-4f7d-9e8b-91867453f899"
|
data-website-id="e733a73f-980e-4f7d-9e8b-91867453f899"
|
||||||
src="https://widget.kapa.ai/kapa-widget.bundle.js"
|
src="https://widget.kapa.ai/kapa-widget.bundle.js"
|
||||||
strategy="afterInteractive"
|
strategy="afterInteractive"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user