import { AISparkleIcon } from "~/assets/icons/AISparkleIcon"; import { ClientTabs, ClientTabsContent, ClientTabsList, ClientTabsTrigger, } from "~/components/primitives/ClientTabs"; import type { QueryScope } from "~/services/queryService.server"; import { AITabContent } from "./AITabContent"; import { ExamplesContent } from "./ExamplesContent"; import { TableSchemaContent } from "./TableSchemaContent"; import { TRQLGuideContent } from "./TRQLGuideContent"; import type { AITimeFilter } from "./types"; export function QueryHelpSidebar({ onTryExample, onQueryGenerated, onTimeFilterChange, getCurrentQuery, activeTab, onTabChange, aiFixRequest, }: { onTryExample: (query: string, scope: QueryScope) => void; onQueryGenerated: (query: string) => void; onTimeFilterChange?: (filter: AITimeFilter) => void; getCurrentQuery: () => string; activeTab: string; onTabChange: (tab: string) => void; aiFixRequest: { prompt: string; key: number } | null; }) { return (