evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A React component that manages URL search parameters with configurable history behavior.
Build a component that allows users to toggle between two different history modes for URL updates: one that creates new browser history entries and one that replaces the current entry.
/**
* A component that manages search query state in the URL with configurable history mode.
*
* Displays:
* - An input field for search queries (synced to "q" URL parameter)
* - Current history mode indicator
* - Toggle button to switch between push/replace modes
*/
export function SearchHistoryManager(): JSX.Element;Provides type-safe URL search parameter state management with history control.
Provides component rendering and hooks.