import { type JSX, Show, type ValidComponent, splitProps } from "solid-js"; import { type ElementOf, Polymorphic, type PolymorphicProps, } from "../polymorphic"; import { useSearchContext } from "./search-context"; export interface SearchIndicatorOptions {} export interface SearchIndicatorCommonProps< T extends HTMLElement = HTMLElement, > { children: JSX.Element; loadingComponent?: JSX.Element; } export interface SearchIndicatorRenderProps extends SearchIndicatorCommonProps {} export type SearchIndicatorProps< T extends ValidComponent | HTMLElement = HTMLElement, > = SearchIndicatorOptions & Partial>>; export function SearchIndicator( props: PolymorphicProps>, ) { const [local, other] = splitProps(props, ["loadingComponent"]); const context = useSearchContext(); return ( ); }