Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | import { EmptyRequest } from "@shared/proto/cline/common" import AiHydroLogoVariable from "@/assets/AiHydroLogoVariable" import HeroTooltip from "@/components/common/HeroTooltip" import { useExtensionState } from "@/context/ExtensionStateContext" import { UiServiceClient } from "@/services/grpc-client" interface HomeHeaderProps { shouldShowQuickWins?: boolean } const HomeHeader = ({ shouldShowQuickWins = false }: HomeHeaderProps) => { const { environment } = useExtensionState() const handleTakeATour = async () => { try { await UiServiceClient.openWalkthrough(EmptyRequest.create()) } catch (error) { console.error("Error opening walkthrough:", error) } } return ( <div className="flex flex-col items-center mb-5"> <div className="my-5"> <AiHydroLogoVariable className="size-16" environment={environment} /> </div> <div className="text-center flex items-center justify-center"> <h2 className="m-0 text-lg">{"What hydrology research can I help with?"}</h2> <HeroTooltip className="max-w-[300px]" content={ "I can assist with hydrological modeling, watershed analysis, CAMELS data processing, streamflow analysis, and scientific workflows. I can fetch USGS data, compute signatures, run hydrological models, and help with Python-based hydrology computations." } placement="bottom"> <span className="codicon codicon-info ml-2 cursor-pointer text-link text-sm" /> </HeroTooltip> </div> {shouldShowQuickWins && ( <div className="mt-4"> <button className="flex items-center gap-2 px-4 py-2 rounded-full border border-border-panel bg-white/[0.02] hover:bg-list-background-hover transition-colors duration-150 ease-in-out text-code-foreground text-sm font-medium cursor-pointer" onClick={handleTakeATour} type="button"> Take a Tour <span className="codicon codicon-play scale-90"></span> </button> </div> )} </div> ) } export default HomeHeader |