'use client' // legacy layout for the docs-ia-mvp-v1 control variant. delete it when option-1 ships import { AiTools } from '~/components/AiTools' import { Feedback } from '~/components/Feedback' import { VideoPreview } from '~/components/VideoPreview' import { LayoutSwitchButton } from '~/features/DocsLayout/LayoutSwitchButton' import { isFeatureEnabled } from 'common' import { usePathname } from 'next/navigation' import { cn } from 'ui' import { ExpandableVideo } from 'ui-patterns/ExpandableVideo' import { TocSection } from 'ui-patterns/Toc' import { useTocAnchors } from '../features/docs/GuidesMdx.state' const GuidesSidebar = ({ className, video, videoTitle, hideToc, }: { className?: string video?: string videoTitle?: string hideToc?: boolean }) => { const pathname = usePathname() const { toc } = useTocAnchors() const showFeedback = isFeatureEnabled('feedback:docs') const tocVideoPreview = `https://img.youtube.com/vi/${video}/0.jpg` return (