'use client' import { usePathname } from 'next/navigation' export default function AIChatLinks() { const pathname = usePathname() const currentUrl = `https://docs.thealtstack.com${pathname === '/' ? '' : pathname}` const prompt = `Read the documentation at ${currentUrl} and use the context from https://docs.thealtstack.com/llms.txt to help me understand or address my problem regarding this page.` const encodedPrompt = encodeURIComponent(prompt) const chatGptUrl = `https://chatgpt.com/?q=${encodedPrompt}&hints=search` const claudeUrl = `https://claude.ai/new?q=${encodedPrompt}` return (
) }