import { Show, type ValidComponent } from "solid-js"; import { type ElementOf, Polymorphic, type PolymorphicProps, } from "../polymorphic"; import { useSearchContext } from "./search-context"; export interface SearchNoResultOptions {} export interface SearchNoResultCommonProps< T extends HTMLElement = HTMLElement, > {} export interface SearchNoResultRenderProps extends SearchNoResultCommonProps {} export type SearchNoResultProps< T extends ValidComponent | HTMLElement = HTMLElement, > = SearchNoResultOptions & Partial>>; /** * Displayed in portal when no options are presented */ export function SearchNoResult( props: PolymorphicProps>, ) { const context = useSearchContext(); return ( ); }