import { defineCustomElement, defineProps, registerCustomElement, type HostElement, type HostElementConstructor, type PropsDeclaration, type State, } from '@aria-ui/core' import { setupListboxEmpty, type ListboxEmptyProps } from '@aria-ui/elements/listbox' export interface AutocompleteEmptyProps extends ListboxEmptyProps {} /** @internal */ export const AutocompleteEmptyPropsDeclaration: PropsDeclaration = /* @__PURE__ */ defineProps< AutocompleteEmptyProps >({}) /** * @internal */ export function setupAutocompleteEmpty( host: HostElement, props: State, ): void { setupListboxEmpty(host, props) } const AutocompleteEmptyElementBase: HostElementConstructor = defineCustomElement( setupAutocompleteEmpty, AutocompleteEmptyPropsDeclaration, ) /** * `` custom element. * * Properties: {@link AutocompleteEmptyProps} */ export class AutocompleteEmptyElement extends AutocompleteEmptyElementBase {} /** @internal */ export function registerAutocompleteEmptyElement(): void { registerCustomElement('prosekit-autocomplete-empty', AutocompleteEmptyElement) }