'use client'; import React, { useState, useEffect, useRef, useCallback } from 'react'; import Link from 'next/link'; import { useParams } from 'next/navigation'; import Header from '@/components/Header'; import Footer from '@/components/Footer'; import AdImage from '@/components/AdImage'; import { pickAds, rotateAll } from '@/lib/ads'; import { createClient } from '@/lib/supabase/client'; import SidebarAdStack from "@/components/SidebarAdStack"; import LinkifyPlainText from "@/components/LinkifyPlainText"; import RichBody from "@/components/forum/RichBody"; import ImageAttachButton from "@/components/forum/ImageAttachButton"; import CompanyMentionsHover from "@/components/CompanyMentionsHover"; // Inline ad slot inserted between forum replies every N posts. function InThreadAd({ adIndex }: { adIndex: number }) { const pool = rotateAll("300x250"); if (pool.length === 0) return null; const ad = pool[adIndex % pool.length]; return (
Ask the AI assistant a question related to this thread. Responses are generated by AI and should be verified for critical decisions.
{aiError && ({aiError}
)}Sign in or create a free account to post replies.