39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import { FeedContainer } from '@nx/nx-dev/feature-ai';
|
|
import { DocumentationHeader } from '@nx/nx-dev/ui-common';
|
|
import { NextSeo } from 'next-seo';
|
|
import { useNavToggle } from '../../lib/navigation-toggle.effect';
|
|
|
|
export default function AiDocs(): JSX.Element {
|
|
const { toggleNav, navIsOpen } = useNavToggle();
|
|
return (
|
|
<>
|
|
<NextSeo
|
|
title="Nx AI Chat (Alpha)"
|
|
description="AI chat powered by Nx docs."
|
|
noindex={true}
|
|
robotsProps={{
|
|
nosnippet: true,
|
|
notranslate: true,
|
|
noimageindex: true,
|
|
noarchive: true,
|
|
maxSnippet: -1,
|
|
maxImagePreview: 'none',
|
|
maxVideoPreview: -1,
|
|
}}
|
|
/>
|
|
<div id="shell" className="flex h-full flex-col">
|
|
<div className="w-full flex-shrink-0">
|
|
<DocumentationHeader isNavOpen={navIsOpen} toggleNav={toggleNav} />
|
|
</div>
|
|
<main
|
|
id="main"
|
|
role="main"
|
|
className="flex h-full flex-1 overflow-y-hidden"
|
|
>
|
|
<FeedContainer />
|
|
</main>
|
|
</div>
|
|
</>
|
|
);
|
|
}
|