Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

473 B
Raw Blame
import { createContext, useContext } from 'react';
import type { SettingsSearchEntry } from './settingsSearchTypes';

/** Page-owned reveal handlers consume the same resolved target as the scroll lifecycle. */
export const SettingsSearchNavigationContext = createContext<{
  entry: SettingsSearchEntry | null;
  activation: number;
}>({ entry: null, activation: 0 });

export function useSettingsSearchNavigation() {
  return useContext(SettingsSearchNavigationContext);
}